We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a0abea commit d8583ebCopy full SHA for d8583eb
clang/AST/Type.cpp
@@ -446,8 +446,7 @@ bool Type::isArithmeticType() const {
446
if (const TagType *TT = dyn_cast<TagType>(CanonicalType))
447
if (const EnumDecl *ED = dyn_cast<EnumDecl>(TT->getDecl()))
448
// GCC allows forward declaration of enum types (forbid by C99 6.7.2.3p2).
449
- // If a body isn't seen by the time we get here, we exclude it from
450
- // being allowed in arithmetic expressions.
+ // If a body isn't seen by the time we get here, return false.
451
return ED->isDefinition();
452
return isa<ComplexType>(CanonicalType) || isa<VectorType>(CanonicalType);
453
}
0 commit comments