Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Resolver.cc

    r1ba88a0 ra465caff  
    528528
    529529        void Resolver::visit( ConstructorInit *ctorInit ) {
    530                 // xxx - fallback init has been removed => remove fallbackInit function and remove complexity from FixInit and remove C-init from ConstructorInit
    531                 maybeAccept( ctorInit->get_ctor(), *this );
    532                 maybeAccept( ctorInit->get_dtor(), *this );
     530                try {
     531                        maybeAccept( ctorInit->get_ctor(), *this );
     532                        maybeAccept( ctorInit->get_dtor(), *this );
     533                } catch ( SemanticError ) {
     534                        // no alternatives for the constructor initializer - fallback on C-style initializer
     535                        // xxx - not sure if this makes a ton of sense - should maybe never be able to have this situation?
     536                        fallbackInit( ctorInit );
     537                        return;
     538                }
    533539
    534540                // found a constructor - can get rid of C-style initializer
Note: See TracChangeset for help on using the changeset viewer.