]> granicus.if.org Git - clang/commit
When defining a forward-declared enum, don't try to attach the definition to
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 23 Mar 2012 23:09:08 +0000 (23:09 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 23 Mar 2012 23:09:08 +0000 (23:09 +0000)
commit3343fad1f1ec81af43674b76eddbe9ab10e344eb
tree023a7b07425bdaf35e68ff80d75c6205c74dbfb6
parentad8d8a31b010ceac4cad2553f16fc1a77c4b2e5e
When defining a forward-declared enum, don't try to attach the definition to
a previous declaration if the redeclaration is invalid. That way lies madness.
Fixes a crash-on-invalid reported by Abramo.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153349 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ReleaseNotes.html
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
lib/Sema/SemaTemplateInstantiate.cpp
test/SemaCXX/enum-scoped.cpp
www/cxx_status.html