File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1571,11 +1571,14 @@ Decl *TemplateDeclInstantiator::VisitEnumDecl(EnumDecl *D) {
15711571 Enum->setIntegerType (SemaRef.Context .IntTy );
15721572 else
15731573 Enum->setIntegerTypeSourceInfo (NewTI);
1574+
15741575 // C++23 [conv.prom]p4
1575- // if integral promotion can be applied to its underlying type, a prvalue of an unscoped enumeration type
1576- // whose underlying type is fixed can also be converted to a prvalue of the promoted underlying type.
1577- //
1578- // FIXME: that logic is already implemented in ActOnEnumBody, factor out into (Re)BuildEnumBody.
1576+ // if integral promotion can be applied to its underlying type, a prvalue
1577+ // of an unscoped enumeration type whose underlying type is fixed can also
1578+ // be converted to a prvalue of the promoted underlying type.
1579+ //
1580+ // FIXME: that logic is already implemented in ActOnEnumBody, factor out
1581+ // into (Re)BuildEnumBody.
15791582 QualType UnderlyingType = Enum->getIntegerType ();
15801583 Enum->setPromotionType (
15811584 SemaRef.Context .isPromotableIntegerType (UnderlyingType)
You can’t perform that action at this time.
0 commit comments