This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: lambda-switch regression


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]