diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-03-23 23:09:08 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-03-23 23:09:08 +0000 |
commit | 3343fad1f1ec81af43674b76eddbe9ab10e344eb (patch) | |
tree | 023a7b07425bdaf35e68ff80d75c6205c74dbfb6 /include/clang/Basic | |
parent | ad8d8a31b010ceac4cad2553f16fc1a77c4b2e5e (diff) |
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
Diffstat (limited to 'include/clang/Basic')
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 36232b1e98..405ae906e5 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -1276,6 +1276,8 @@ def err_enum_class_reference : Error< "not 'enum class'">; def err_only_enums_have_underlying_types : Error< "only enumeration types have underlying types">; +def err_unscoped_enum_defined_out_of_class : Error< + "out-of-line definition of unscoped enumeration member is not supported">; // C++11 delegating constructors def err_delegating_ctor : Error< |