Changeset 99b7d4fc


Ignore:
Timestamp:
Oct 23, 2017, 5:30:32 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
aeef2bd
Parents:
70529dc
Message:

Fix isComplete for ArrayType?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Type.h

    r70529dc r99b7d4fc  
    298298        void set_isStatic( bool newValue ) { isStatic = newValue; }
    299299
    300         virtual bool isComplete() const override { return ! isVarLen; }
     300        // array types are complete if they have a dimension expression or are
     301        // VLAs ('*' in parameter declaration), and incomplete otherwise.
     302        // See 6.7.6.2
     303        virtual bool isComplete() const override { return dimension || isVarLen; }
    301304
    302305        virtual ArrayType *clone() const override { return new ArrayType( *this ); }
Note: See TracChangeset for help on using the changeset viewer.