]> granicus.if.org Git - clang/commit
Handle instantiations of redeclarations of forward-declared enumerations within
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 26 Mar 2012 04:58:10 +0000 (04:58 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 26 Mar 2012 04:58:10 +0000 (04:58 +0000)
commit38f0df352fadc546c5666079fb22de5ec1819d92
tree1713e0b3b1c2a38a49ec508e8f5d92283ed739b3
parent4ca93d9978aac02b01814b4f749d6903a1f87ee5
Handle instantiations of redeclarations of forward-declared enumerations within
templated functions. Build a redeclaration chain, and only instantiate the
definition of the enum when visiting the defining declaration.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153427 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaCXX/enum-scoped.cpp