c++'0x has long long also.

llvm-svn: 41544
This commit is contained in:
Chris Lattner 2007-08-28 16:41:29 +00:00
parent f2c338b7d1
commit 8ed218afb9
1 changed files with 1 additions and 1 deletions

View 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);