Changeset 3e54399 for src/SynTree


Ignore:
Timestamp:
Mar 10, 2022, 2:03:43 AM (4 years ago)
Author:
JiadaL <j82liang@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
f238fcc2
Parents:
786c438
Message:

The compiler now will add a cast to base type for the usage of type enum; but it will fail because of violating some restrictions for the auto-gen functions. Need to investiage more

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    r786c438 r3e54399  
    339339          LinkageSpec::Spec linkage = LinkageSpec::Cforall,
    340340          Type * baseType = nullptr ) : Parent( name, attributes, linkage ) , base( baseType ){}
    341         EnumDecl( const EnumDecl & other ) : Parent( other ) {}
     341        EnumDecl( const EnumDecl & other ) : Parent( other ), base( other.base ) {}
    342342
    343343        bool valueOf( Declaration * enumerator, long long int & value );
Note: See TracChangeset for help on using the changeset viewer.