From 213d34330f15bbce2bc04f3fb7cfb5c91b7ae41a Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Fri, 11 Aug 2017 12:06:52 +0000 Subject: [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 llvm-svn: 310706 --- clang/test/Modules/Inputs/innerstructredef.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 clang/test/Modules/Inputs/innerstructredef.h (limited to 'clang/test/Modules/Inputs/innerstructredef.h') diff --git a/clang/test/Modules/Inputs/innerstructredef.h b/clang/test/Modules/Inputs/innerstructredef.h new file mode 100644 index 00000000000..600f44e41cf --- /dev/null +++ b/clang/test/Modules/Inputs/innerstructredef.h @@ -0,0 +1,6 @@ +struct Outer { +// This definition is actually hidden since only submodule 'one' is imported. +struct Inner { + int x; +} field; +}; -- cgit v1.2.3