]> granicus.if.org Git - clang/commit
Don't assume that a base is always a RecordType, it can also be a TemplateSpecializat...
authorAnders Carlsson <andersca@mac.com>
Tue, 1 Sep 2009 06:22:14 +0000 (06:22 +0000)
committerAnders Carlsson <andersca@mac.com>
Tue, 1 Sep 2009 06:22:14 +0000 (06:22 +0000)
commitcdc83c777973fa56b6f828bfe88210290ca58d62
tree1c99b418de094a79ceb19ba8a9e5825c60b31eea
parentc17fb7bd9a06b027c792c7dfad7e9fa430277aff
Don't assume that a base is always a RecordType, it can also be a TemplateSpecializationType. Also, make sure to get the instantiated union member.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80662 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaTemplate/instantiate-anonymous-union.cpp