Changeset 960665c for src/Parser


Ignore:
Timestamp:
Aug 20, 2024, 6:15:01 PM (3 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
ad47ec4
Parents:
d1f5054 (diff), df2e00f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cpp

    rd1f5054 r960665c  
    999999        assert( type );
    10001000
     1001        // Some types are parsed as declarations and, syntactically, can have
     1002        // initializers. However, semantically, this is meaningless.
     1003        if ( initializer ) {
     1004                SemanticError( this, "Initializer on type declaration " );
     1005        }
     1006
    10011007        switch ( type->kind ) {
    10021008        case TypeData::Aggregate: {
Note: See TracChangeset for help on using the changeset viewer.