Changeset 790f251 for src/Parser/DeclarationNode.cpp
- Timestamp:
- Aug 22, 2024, 2:32:14 PM (13 hours ago)
- Branches:
- master
- Children:
- cc0aa8c
- Parents:
- df2e00f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cpp
rdf2e00f r790f251 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Feb 23 18:25:57 202413 // Update Count : 15 3312 // Last Modified On : Thu Aug 22 14:11:47 2024 13 // Update Count : 1555 14 14 // 15 15 … … 134 134 os << endl << string( indent + 2, ' ' ) << "with initializer "; 135 135 initializer->printOneLine( os ); 136 os << " maybe constructed? " << initializer->get_maybeConstructed(); 136 if ( ! initializer->get_maybeConstructed() ) { 137 os << " constructed with @= "; 138 } // if 137 139 } // if 138 140 … … 999 1001 assert( type ); 1000 1002 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 " ); 1003 // Some types are parsed as declarations and, syntactically, can have initializers, which are not support (possibly 1004 // meaningless). 1005 if ( initializer && initializer->get_maybeConstructed() ) { // no @= 1006 SemanticError( location, "default initialization for parameter %s is unsupport for a function-pointer declaration.", 1007 (this->name) ? this->name->c_str() : "anonymous" ); 1005 1008 } 1006 1009
Note: See TracChangeset
for help on using the changeset viewer.