Changeset bb336a6 for src/ResolvExpr


Ignore:
Timestamp:
Jul 10, 2024, 3:39:26 AM (9 days ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
dbff8ec
Parents:
550afde2
Message:

Fixed the problem when enum use another enumerator as initializer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/ResolveTypeof.cpp

    r550afde2 rbb336a6  
    6161                if ( typeofType->kind == ast::TypeofType::Basetypeof ) {
    6262                        // replace basetypeof(<enum>) by int
    63                         if ( newType.as< ast::EnumInstType >() ) {
    64                                 newType = new ast::BasicType(
    65                                         ast::BasicKind::SignedInt, newType->qualifiers, copy(newType->attributes) );
    66                         }
     63                        // if ( newType.as< ast::EnumInstType >() ) {
     64                        //      newType = new ast::BasicType(
     65                        //              ast::BasicKind::SignedInt, newType->qualifiers, copy(newType->attributes) );
     66                        // }
    6767                        reset_qualifiers(
    6868                                newType,
Note: See TracChangeset for help on using the changeset viewer.