Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Resolver.cc

    r92355883 r8f557161  
    10111011                        ast::TypeEnvironment env;
    10121012                        CandidateFinder finder( context, env );
    1013                         finder.allowVoid = true;
    10141013                        finder.find( untyped, recursion_level == 1 ? mode.atTopLevel() : mode );
    10151014                        --recursion_level;
     
    10551054
    10561055                        // promote candidate.cvtCost to .cost
    1057                         // promoteCvtCost( winners );
     1056                        promoteCvtCost( winners );
    10581057
    10591058                        // produce ambiguous errors, if applicable
     
    15071506                                if ( InitTweak::tryConstruct( mutDecl ) && ( managedTypes.isManaged( mutDecl ) || ((! isInFunction() || mutDecl->storage.is_static ) && ! InitTweak::isConstExpr( mutDecl->init ) ) ) ) {
    15081507                                        // 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" );
    15131509                                        // constructed objects should not have initializers nested too deeply
    15141510                                        if ( ! InitTweak::checkInitDepth( mutDecl ) ) SemanticError( mutDecl, "Managed object's initializer is too deep " );
Note: See TracChangeset for help on using the changeset viewer.