https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82988
Bug ID: 82988 Summary: [8 regression] g++.dg/cpp0x/lambda/lambda-switch.C fail Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: andrey.y.guskov at intel dot com Target Milestone: --- r254630 triggers this: --- spawn -ignore SIGHUP /work/gcc/testsuite/g++5/../../xg++ -B/work/gcc/testsuite/g++5/../../ /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C -fno-diagnostics-show-caret -fdiagnostics-color=never -nostdinc++ -I/work/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I/work/x86_64-pc-linux-gnu/libstdc++-v3/include -I/source/libstdc++-v3/libsupc++ -I/source/libstdc++-v3/include/backward -I/source/libstdc++-v3/testsuite/util -fmessage-length=0 -std=c++11 -pedantic-errors -Wno-long-long -S -o lambda-switch.s /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C: In member function 'void main()::A::f()': /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C:15:6: error: case label '4' not within a switch statement /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C:16:8: error: break statement not within loop or switch /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C: In lambda function: /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C:21:6: error: case label '3' not within a switch statement /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C:22:8: error: break statement not within loop or switch /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C: In function 'int main()': /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C:23:6: warning: statement will never be executed [-Wswitch-unreachable] compiler exited with status 1 PASS: g++.dg/cpp0x/lambda/lambda-switch.C -std=c++11 (test for errors, line 15) PASS: g++.dg/cpp0x/lambda/lambda-switch.C -std=c++11 (test for errors, line 16) FAIL: g++.dg/cpp0x/lambda/lambda-switch.C -std=c++11 (test for warnings, line 19) PASS: g++.dg/cpp0x/lambda/lambda-switch.C -std=c++11 (test for errors, line 21) PASS: g++.dg/cpp0x/lambda/lambda-switch.C -std=c++11 (test for errors, line 22) FAIL: g++.dg/cpp0x/lambda/lambda-switch.C -std=c++11 (test for excess errors) --- spawn -ignore SIGHUP /work/gcc/testsuite/g++5/../../xg++ -B/work/gcc/testsuite/g++5/../../ /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C -fno-diagnostics-show-caret -fdiagnostics-color=never -nostdinc++ -I/work/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I/work/x86_64-pc-linux-gnu/libstdc++-v3/include -I/source/libstdc++-v3/libsupc++ -I/source/libstdc++-v3/include/backward -I/source/libstdc++-v3/testsuite/util -fmessage-length=0 -std=c++14 -pedantic-errors -Wno-long-long -S -o lambda-switch.s /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C: In member function 'void main()::A::f()': /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C:15:6: error: case label '4' not within a switch statement /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C:16:8: error: break statement not within loop or switch /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C: In lambda function: /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C:21:6: error: case label '3' not within a switch statement /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C:22:8: error: break statement not within loop or switch /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C: In function 'int main()': /source/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-switch.C:23:6: warning: statement will never be executed [-Wswitch-unreachable] compiler exited with status 1 PASS: g++.dg/cpp0x/lambda/lambda-switch.C -std=c++14 (test for errors, line 15) PASS: g++.dg/cpp0x/lambda/lambda-switch.C -std=c++14 (test for errors, line 16) FAIL: g++.dg/cpp0x/lambda/lambda-switch.C -std=c++14 (test for warnings, line 19) PASS: g++.dg/cpp0x/lambda/lambda-switch.C -std=c++14 (test for errors, line 21) PASS: g++.dg/cpp0x/lambda/lambda-switch.C -std=c++14 (test for errors, line 22) FAIL: g++.dg/cpp0x/lambda/lambda-switch.C -std=c++14 (test for excess errors) Option set: -with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-shared --enable-host-shared --enable-clocale=gnu --enable-cloog-backend=isl --enable-languages=c,c++,fortran,jit,lto -with-arch=slm --with-cpu=slm