aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaType.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-05-13 05:02:08 +0000
committerChris Lattner <sabre@nondot.org>2009-05-13 05:02:08 +0000
commit8f12f65fad7bfbbdbd4234efe0d484f68c3924b6 (patch)
treed5f8f91495b196ab53488e910197f1c5ff1383db /lib/Sema/SemaType.cpp
parent01ad39e42de07f9a81fba986e6a045a3904ef7a9 (diff)
reject use of the GNU _Decimal32 extension with a diagnostic, not an abort.
rdar://6880104 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r--lib/Sema/SemaType.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp
index d04a5ad6c5..972ac82b4c 100644
--- a/lib/Sema/SemaType.cpp
+++ b/lib/Sema/SemaType.cpp
@@ -164,7 +164,10 @@ QualType Sema::ConvertDeclSpecToType(const DeclSpec &DS,
case DeclSpec::TST_decimal32: // _Decimal32
case DeclSpec::TST_decimal64: // _Decimal64
case DeclSpec::TST_decimal128: // _Decimal128
- assert(0 && "FIXME: GNU decimal extensions not supported yet!");
+ Diag(DS.getTypeSpecTypeLoc(), diag::err_decimal_unsupported);
+ Result = Context.IntTy;
+ isInvalid = true;
+ break;
case DeclSpec::TST_class:
case DeclSpec::TST_enum:
case DeclSpec::TST_union: