lambda-switch regression

Nathan Sidwell nathan@acm.org
Wed Nov 15 13:08:00 GMT 2017


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



More information about the Gcc-patches mailing list