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?

nathan
--
Nathan Sidwell

Reply via email to