Ignore:
Timestamp:
Dec 1, 2016, 12:46:34 PM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
78b3f52
Parents:
148f7290
Message:

0 and 1 now properly parse and resolve to zero_t and one_t respectively

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/TypeData.cc

    r148f7290 r4cb935e  
    215215                break;
    216216          case Builtin:
    217                 assert( false );
    218                 // newtype->builtin = builtin;
     217                assert( builtintype == DeclarationNode::Zero || builtintype == DeclarationNode::One );
     218                newtype->builtintype = builtintype;
    219219                break;
    220220        } // switch
     
    445445          case TypeData::Builtin:
    446446                if(td->builtintype == DeclarationNode::Zero) {
    447                         return new ZeroType( buildQualifiers( td ) );
     447                        return new ZeroType( emptyQualifiers );
    448448                }
    449449                else if(td->builtintype == DeclarationNode::One) {
    450                         return new OneType( buildQualifiers( td ) );
     450                        return new OneType( emptyQualifiers );
    451451                }
    452452                else {
Note: See TracChangeset for help on using the changeset viewer.