]> granicus.if.org Git - clang/commit
Make sure that we use the canonical type for the names of instantiated
authorDouglas Gregor <dgregor@apple.com>
Fri, 15 May 2009 21:18:27 +0000 (21:18 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 15 May 2009 21:18:27 +0000 (21:18 +0000)
commit49f25ecf7ff358039ce4c9254b867f32110e660e
treedbee2c676279bf24e9850605b96ef45f5129fab7
parent3bba33d6f58844d4924ab1e221dc2ff44c521624
Make sure that we use the canonical type for the names of instantiated
constructors and destructors. This is a requirement of
DeclarationNameTable::getCXXSpecialName that we weren't assert()'ing,
so it should have been caught much earlier :(

Big thanks to Anders for the test case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71895 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/DeclarationName.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaTemplate/instantiate-function-1.cpp
test/SemaTemplate/instantiate-function-2.cpp [new file with mode: 0644]