diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-06-12 00:01:45 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-06-12 00:01:45 +0000 |
commit | d27916ef6fac3d2250b6d15c404976f0c33f85b4 (patch) | |
tree | 031833698405c5bb2efb72490556236feccea541 /include/clang/Basic/DiagnosticSemaKinds.td | |
parent | 518ff651ebca885b7fc97869872671cca41d3619 (diff) | |
download | clang-d27916ef6fac3d2250b6d15c404976f0c33f85b4.tar.gz clang-d27916ef6fac3d2250b6d15c404976f0c33f85b4.tar.bz2 clang-d27916ef6fac3d2250b6d15c404976f0c33f85b4.tar.xz |
PR19966: don't crash/assert when __underlying_type is applied to an incomplete
enumeration type. I've also filed a LWG issue pointing out that this should be
ill-formed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticSemaKinds.td')
-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 1c9aef2ff6..95b204f548 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -1686,6 +1686,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_underlying_type_of_incomplete_enum : Error< + "cannot determine underlying type of incomplete enumeration type %0">; // C++11 delegating constructors def err_delegating_ctor : Error< |