Changeset 5c6d439


Ignore:
Timestamp:
Sep 9, 2024, 3:37:48 PM (5 weeks ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
b6f2e7ab
Parents:
a7efc96
Message:

Order of evaluation between arguments of a function is not left-to-right. Or right-to-left for that matter, it is unordred.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/TypeData.cpp

    ra7efc96 r5c6d439  
    14761476                } else if ( cur->has_enumeratorValue() ) {
    14771477                        ast::Expr * initValue;
    1478                         if (ret->isCfa && ret->base) {
    1479                                 initValue = new ast::CastExpr( cur->enumeratorValue->location, maybeMoveBuild( cur->consume_enumeratorValue() ), ret->base  );
     1478                        if ( ret->isCfa && ret->base ) {
     1479                                CodeLocation location = cur->enumeratorValue->location;
     1480                                initValue = new ast::CastExpr( location, maybeMoveBuild( cur->consume_enumeratorValue() ), ret->base );
    14801481                        } else {
    14811482                                initValue = maybeMoveBuild( cur->consume_enumeratorValue() );
Note: See TracChangeset for help on using the changeset viewer.