Changeset 0bcd707 for src


Ignore:
Timestamp:
Feb 20, 2023, 9:11:37 PM (14 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, master
Children:
e4f13fe
Parents:
c910709
Message:

make CV qualifiers on empty SUE declaration an error, gcc only has a warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    rc910709 r0bcd707  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Feb 14 21:11:39 2023
    13 // Update Count     : 5893
     12// Last Modified On : Mon Feb 20 11:31:26 2023
     13// Update Count     : 5896
    1414//
    1515
     
    19831983        | typedef_expression                                                            // deprecated GCC, naming expression type
    19841984        | sue_declaration_specifier
     1985                {
     1986                        assert( $1->type );
     1987                        if ( $1->type->qualifiers.val != 0 ) {
     1988                                SemanticError( yylloc, "Useless type qualifier in empty declaration." ); $$ = nullptr;
     1989                        }
     1990                }
    19851991        ;
    19861992
Note: See TracChangeset for help on using the changeset viewer.