]> granicus.if.org Git - clang/commit
Fix AST representations of alias-declarations which define tag types. Inside classes...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 1 Jul 2011 19:46:12 +0000 (19:46 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 1 Jul 2011 19:46:12 +0000 (19:46 +0000)
commitc89edf5aaa08683f4afcf61a7a1d183c08b76498
tree98daebda126bc0b3112ee707ada8475dc3c2b88e
parent01b6e31a62e2265849f4388b9be6be0a5d13348d
Fix AST representations of alias-declarations which define tag types. Inside classes, the tag types need to have an associated access specifier, and inside function definitions, they need to be included in the declarations of the DeclStmt. These issues manifested as assertions during template instantiation, and also in a WIP constexpr patch.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134250 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
include/clang/Sema/Sema.h
lib/Parse/ParseDecl.cpp
lib/Parse/ParseDeclCXX.cpp
lib/Sema/SemaDecl.cpp
test/SemaTemplate/instantiate-function-2.cpp
test/SemaTemplate/instantiate-member-class.cpp