Changeset b1f2007 for src/ResolvExpr


Ignore:
Timestamp:
Dec 13, 2023, 9:17:13 AM (6 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
4c2fe47
Parents:
c40157e
Message:

first attempt at simplifying SemanticError? and its usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CurrentObject.cc

    rc40157e rb1f2007  
    99// Author           : Rob Schluntz
    1010// Created On       : Tue Jun 13 15:28:32 2017
    11 // Last Modified By : Andrew Beach
    12 // Last Modified On : Mon Apr 10  9:40:00 2023
    13 // Update Count     : 18
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Sat Dec  9 17:49:51 2023
     13// Update Count     : 20
    1414//
    1515
     
    181181                auto res = eval( expr );
    182182                if ( !res.hasKnownValue ) {
    183                         SemanticError( location, toString( "Array designator must be a constant expression: ", expr ) );
     183                        SemanticError( location, "Array designator must be a constant expression %s", toString( expr ).c_str() );
    184184                }
    185185                return res.knownValue;
Note: See TracChangeset for help on using the changeset viewer.