On 11/15/2017 06:03 AM, Nathan Sidwell wrote:
g++.dg/lambda/lambda-switch.C Has recently regressed. It appears the location of a warning message has moved.l = []() // { dg-warning "statement will never be executed" } { case 3: // { dg-error "case" } break; // { dg-error "break" } }; <--- warning now here We seem to be diagnosing the last line of the statement, not the first. That seems not a useful. I've not investigated what patch may have caused this, on the chance someone might already know?
Bug 82988 points to my r254630 as the commit that triggered it. I haven't yet looked into it. There some small chance that it was caused by bug 82977 that Jakub just fixed. Martin
