]> granicus.if.org Git - clang/commitdiff
c++'0x has long long also.
authorChris Lattner <sabre@nondot.org>
Tue, 28 Aug 2007 16:41:29 +0000 (16:41 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 28 Aug 2007 16:41:29 +0000 (16:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41544 91177308-0d34-0410-b5e6-96231b3b80d8

Sema/SemaType.cpp

index bbf8457acff3a68ac8de96deab20efc59cbe41ee..5582c5a89b0e10819e70b86670aa3d70f15e8a2f 100644 (file)
@@ -124,7 +124,7 @@ static QualType ConvertDeclSpecToType(const DeclSpec &DS, ASTContext &Ctx) {
 /// instances.
 QualType Sema::GetTypeForDeclarator(Declarator &D, Scope *S) {
   // long long is a C99 feature.
-  if (!getLangOptions().C99 &&
+  if (!getLangOptions().C99 && !getLangOptions().CPlusPlus0x &&
       D.getDeclSpec().getTypeSpecWidth() == DeclSpec::TSW_longlong)
     Diag(D.getDeclSpec().getTypeSpecWidthLoc(), diag::ext_longlong);