if (II) Loc = D.getIdentifierLoc();
QualType T = GetTypeForDeclarator(D, S);
-
- if (getLangOptions().CPlusPlus) {
+ if (getLangOptions().CPlusPlus)
CheckExtraCXXDefaultArguments(D);
- }
DiagnoseFunctionSpecifiers(D);
// example, unnamed unions inject all members into the struct namespace!
QualType T = GetTypeForDeclarator(D, S);
- assert(!T.isNull() && "GetTypeForDeclarator() returned null type");
bool InvalidDecl = false;
+ if (T.isNull()) {
+ InvalidDecl = true;
+ T = Context.IntTy;
+ }
if (BitWidth) {
// 6.7.2.1p3, 6.7.2.1p4
static g = 4; // expected-warning {{type specifier missing, defaults to 'int'}}
static h // expected-warning {{type specifier missing, defaults to 'int'}}
__asm__("foo"); // expected-warning {{extension used}}
-