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) {
1571
1571
Enum->setIntegerType (SemaRef.Context .IntTy );
1572
1572
else
1573
1573
Enum->setIntegerTypeSourceInfo (NewTI);
1574
+
1574
1575
// 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.
1579
1582
QualType UnderlyingType = Enum->getIntegerType ();
1580
1583
Enum->setPromotionType (
1581
1584
SemaRef.Context .isPromotableIntegerType (UnderlyingType)
You can’t perform that action at this time.
0 commit comments