Changes in src/ResolvExpr/Resolver.cc [92355883:8f557161]
- File:
-
- 1 edited
-
src/ResolvExpr/Resolver.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r92355883 r8f557161 1011 1011 ast::TypeEnvironment env; 1012 1012 CandidateFinder finder( context, env ); 1013 finder.allowVoid = true;1014 1013 finder.find( untyped, recursion_level == 1 ? mode.atTopLevel() : mode ); 1015 1014 --recursion_level; … … 1055 1054 1056 1055 // promote candidate.cvtCost to .cost 1057 //promoteCvtCost( winners );1056 promoteCvtCost( winners ); 1058 1057 1059 1058 // produce ambiguous errors, if applicable … … 1507 1506 if ( InitTweak::tryConstruct( mutDecl ) && ( managedTypes.isManaged( mutDecl ) || ((! isInFunction() || mutDecl->storage.is_static ) && ! InitTweak::isConstExpr( mutDecl->init ) ) ) ) { 1508 1507 // constructed objects cannot be designated 1509 // if ( InitTweak::isDesignated( mutDecl->init ) ) SemanticError( mutDecl, "Cannot include designations in the initializer for a managed Object. If this is really what you want, then initialize with @=.\n" ); 1510 if ( InitTweak::isDesignated( mutDecl->init ) ) { 1511 SemanticError( mutDecl, "Cannot include designations in the initializer for a managed Object. If this is really what you want, then initialize with @=.\n" ); 1512 } 1508 if ( InitTweak::isDesignated( mutDecl->init ) ) SemanticError( mutDecl, "Cannot include designations in the initializer for a managed Object. If this is really what you want, then initialize with @=.\n" ); 1513 1509 // constructed objects should not have initializers nested too deeply 1514 1510 if ( ! InitTweak::checkInitDepth( mutDecl ) ) SemanticError( mutDecl, "Managed object's initializer is too deep " );
Note:
See TracChangeset
for help on using the changeset viewer.