This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: lambda-switch regression
- From: Martin Sebor <msebor at gmail dot com>
- To: Nathan Sidwell <nathan at acm dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: David Malcolm <dmalcolm at redhat dot com>
- Date: Wed, 15 Nov 2017 10:30:40 -0700
- Subject: Re: lambda-switch regression
- Authentication-results: sourceware.org; auth=none
- References: <3654c425-cd63-2f2e-8039-cb175dce8634@acm.org>
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