[Bug c++/83739] [8 Regression] error: range-based 'for' expression of type 'auto' has incomplete type
bugzilla at cpockrandt dot de
gcc-bugzilla@gcc.gnu.org
Mon Jan 8 19:48:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83739
--- Comment #5 from Chris <bugzilla at cpockrandt dot de> ---
(In reply to Chris from comment #4)
> This is the intermediate file of the most simplified code that I came up
> with that reproduces the error (1.9 MB)
>
> http://www.inf.fu-berlin.de/users/cpockrandt/test_find2_index_approx2.ii
(In reply to Andrew Pinski from comment #3)
> (In reply to Jonathan Wakely from comment #2)
> > There's no way all that code is relevant to the problem.
> >
> > https://gcc.gnu.org/wiki/A_guide_to_testcase_reduction
>
> Note one method which is not mentioned here when there is a regression in
> rejecting valid code is to test the older working compiler too.
>
> So a testing "bash" script (which returns 0 when the test should be accepted
> but is not currently, and non zero otherwise) would look something like:
>
> if old-gcc $1; then
> exit 1
> fi
>
> if gcc $1; then
> exit 0
> fi
>
> exit 1
> ---- CUT ---
> And then you use that with delta or otherwise.
Thanks! I'll apply this for reducing the code at the end of the week when I got
more time!
More information about the Gcc-bugs
mailing list