http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55467
Bug #: 55467 Summary: Wrong value for optimized debug, variants of gcc.dg/guality/pr36728-1.c and gcc.dg/guality/pr36728-2.c Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassig...@gcc.gnu.org ReportedBy: h...@gcc.gnu.org While adjusting gcc.dg/guality/pr36728-1.c and -2.c for PR55030 (as suggested in <http://gcc.gnu.org/ml/gcc-patches/2012-11/msg01542.html>), the test-cases started to fail with the "wrong" kind of failure: the gdb session showed wrong values instead of values being optimized-out, which is the expected fallback for shortcomings in gcc related to optimization and debug. Attached will be two such variants; I hope a single PR is sufficient for the both of them.