[cfe-commits] r41544 - /cfe/trunk/Sema/SemaType.cpp
Chris Lattner
sabre at nondot.org
Tue Aug 28 09:41:29 PDT 2007
Author: lattner
Date: Tue Aug 28 11:41:29 2007
New Revision: 41544
URL: http://llvm.org/viewvc/llvm-project?rev=41544&view=rev
Log:
c++'0x has long long also.
Modified:
cfe/trunk/Sema/SemaType.cpp
Modified: cfe/trunk/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaType.cpp?rev=41544&r1=41543&r2=41544&view=diff
==============================================================================
--- cfe/trunk/Sema/SemaType.cpp (original)
+++ cfe/trunk/Sema/SemaType.cpp Tue Aug 28 11:41:29 2007
@@ -124,7 +124,7 @@
/// 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);
More information about the cfe-commits
mailing list