Changeset 5546eee4 for src/ResolvExpr
- Timestamp:
- Dec 16, 2023, 1:01:44 AM (2 years ago)
- Branches:
- master
- Children:
- b7898ac
- Parents:
- 0fa0201d (diff), 69ab896 (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. - Location:
- src/ResolvExpr
- Files:
-
- 2 edited
-
CurrentObject.cc (modified) (2 diffs)
-
Resolver.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CurrentObject.cc
r0fa0201d r5546eee4 9 9 // Author : Rob Schluntz 10 10 // Created On : Tue Jun 13 15:28:32 2017 11 // Last Modified By : Andrew Beach12 // Last Modified On : Mon Apr 10 9:40:00202313 // Update Count : 1811 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Dec 9 17:49:51 2023 13 // Update Count : 20 14 14 // 15 15 … … 181 181 auto res = eval( expr ); 182 182 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() ); 184 184 } 185 185 return res.knownValue; -
src/ResolvExpr/Resolver.cc
r0fa0201d r5546eee4 9 9 // Author : Aaron B. Moss 10 10 // Created On : Sun May 17 12:17:01 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Wed Apr 20 10:41:00 202213 // Update Count : 2 4811 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Dec 14 18:44:43 2023 13 // Update Count : 251 14 14 // 15 15 … … 632 632 maybe_accept( mutDecl->init.get(), res ); 633 633 if ( !res.core.result ) { 634 SemanticError( mutDecl, "Cannot include designations in the initializer for a managed Object. If this is really what you want, then initialize with @=.\n" ); 634 SemanticError( mutDecl, "Cannot include designations in the initializer for a managed Object.\n" 635 "If this is really what you want, initialize with @=." ); 635 636 } 636 637 } … … 958 959 ++n_mutex_param; 959 960 960 // Check if the argument matches the parameter type in the current 961 // scope 961 // Check if the argument matches the parameter type in the current scope. 962 962 // ast::ptr< ast::Type > paramType = (*param)->get_type(); 963 963 964 if ( 964 965 ! unify(
Note:
See TracChangeset
for help on using the changeset viewer.