From: Chris Lattner Date: Tue, 28 Aug 2007 16:41:29 +0000 (+0000) Subject: c++'0x has long long also. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1eb332181f02a7e0a6f9749265e6a0f55555cd4;p=clang c++'0x has long long also. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41544 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Sema/SemaType.cpp b/Sema/SemaType.cpp index bbf8457acf..5582c5a89b 100644 --- a/Sema/SemaType.cpp +++ b/Sema/SemaType.cpp @@ -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);