@@ -449,13 +449,6 @@ class sema
449
449
450
450
// Now we have the lookup result, but based on lookup constraints flags
451
451
// we may decide it's unsuitable for this lookup and not use it...
452
- //
453
- // TODO: The initial versions of these conditions are written to make the
454
- // new lookup results exactly match the prior lookup results, so we don't
455
- // introduce regressions. However, not all these wrinkles may be needed
456
- // or desirable, so after we know we didn't introduce regressions we can
457
- // consider tweaking/simplifying them -- which is easier now that they're
458
- // collected all in one place
459
452
if (
460
453
result
461
454
// If we were told not to look beyond the current function
@@ -482,33 +475,6 @@ class sema
482
475
483
476
}
484
477
485
- // //--------- START TEMPORARY REGRESSION TEST CODE FOR G_D_O OPTIMIZATION VERIFICATION ---------
486
- // // Now do a regression test violation check
487
- // //
488
- // if (
489
- // flag_internal_debug
490
- // && result_old != result
491
- // )
492
- // {
493
- // std::cerr << "\n Internal compiler error - see cppfront-ice-data.out for debug information\n\n";
494
-
495
- // auto out = std::ofstream{"cppfront-ice-data.out"};
496
-
497
- // out << "g_d_o arguments:\n";
498
- // out << " " << static_cast<void const*>(&t) << " -> " << t.as_string_view() << " @ " << t.position().to_string()
499
- // << ", token order # " << t.get_global_token_order() << "\n";
500
- // out << " look_beyond_current_function: " << std::boolalpha << look_beyond_current_function << "\n";
501
- // out << " include_implicit_this: " << std::boolalpha << include_implicit_this << "\n";
502
-
503
- // out << "result_old: " << static_cast<void const*>(result_old) << "\n";
504
- // out << "result: " << static_cast<void const*>(result ) << "\n\n";
505
-
506
- // debug_print(out);
507
-
508
- // exit(EXIT_FAILURE);
509
- // }
510
- // //--------- END TEMPORARY REGRESSION TEST CODE FOR G_D_O OPTIMIZATION VERIFICATION -----------
511
-
512
478
return result;
513
479
}
514
480
0 commit comments