https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83739
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs-reduction, | |rejects-valid Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-01-08 Target Milestone|--- |8.0 Summary|error: range-based 'for' |[8 Regression] error: |expression of type 'auto' |range-based 'for' |has incomplete type |expression of type 'auto' | |has incomplete type Ever confirmed|0 |1 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (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.