]> granicus.if.org Git - clang/commit
[modules] Set the lexical DC for dummy tag decls that refer to hidden
authorAlex Lorenz <arphaman@gmail.com>
Fri, 11 Aug 2017 12:06:52 +0000 (12:06 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 11 Aug 2017 12:06:52 +0000 (12:06 +0000)
commit39f3cd045120c7497d0cc550aa8f05878fff10d5
tree27b957dc26c28ce9564b354dedf615663b960d19
parent32ad8fc799f90f5f15b2f2be29b3e328deb1e7dc
[modules] Set the lexical DC for dummy tag decls that refer to hidden
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310706 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Modules/Inputs/innerstructredef.h [new file with mode: 0644]
test/Modules/Inputs/module.map
test/Modules/inner-struct-redefines-invisible.m [new file with mode: 0644]