Changes in / [9739c56f:5ef4008]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/TypeData.cpp

    r9739c56f r5ef4008  
    14571457        assert( td->kind == TypeData::Aggregate );
    14581458        assert( td->aggregate.kind == ast::AggregateDecl::Enum );
    1459         ast::ptr<ast::Type> baseType = td->base ? typebuild(td->base) : nullptr;
    1460 
     1459        ast::ptr<ast::Type> baseType;
     1460        if ( td->base ) {
     1461                if ( td->base->kind == TypeData::Aggregate ) {
     1462                        baseType = buildComAggInst( td->base, copy(attributes), linkage );
     1463                } else {
     1464                        baseType = typebuild( td->base );
     1465                }
     1466        }
    14611467        ast::EnumDecl * ret = new ast::EnumDecl(
    14621468                td->location,
Note: See TracChangeset for help on using the changeset viewer.