
declarations that are made visible after the dummy is parsed and ODR verified Prior to this commit the "(getContainingDC(DC) == CurContext && "The next DeclContext should be lexically contained in the current one.")," assertion failure was triggered during semantic analysis of the dummy tag declaration that was declared in another tag declaration because its lexical context did not point to the outer tag decl. rdar://32292196 llvm-svn: 310706
13 lines
325 B
Objective-C
13 lines
325 B
Objective-C
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fsyntax-only -I%S/Inputs -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
@import innerstructredef.one;
|
|
|
|
struct Outer {
|
|
// Should set lexical context when parsing 'Inner' here, otherwise there's a crash:
|
|
struct Inner {
|
|
int x;
|
|
} field;
|
|
};
|