https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104620
Bug ID: 104620 Summary: FAIL: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors) Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Target Milestone: --- Host: hppa*-*-linux* Target: hppa*-*-linux* Build: hppa*-*-linux* AIL: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors, line 80) FAIL: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors, line 84) spawn -ignore SIGHUP /home/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../xg++ -B/h ome/dave/gnu/gcc/objdir/gcc/testsuite/g++/../../ /home/dave/gnu/gcc/gcc/gcc/test suite/g++.dg/cpp23/consteval-if2.C -fdiagnostics-plain-output -nostdinc++ -I/hom e/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu -I/home /dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include -I/home/dave/gnu/gcc/gc c/libstdc++-v3/libsupc++ -I/home/dave/gnu/gcc/gcc/libstdc++-v3/include/backward -I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/util -fmessage-length=0 -std=gnu ++20 -S -o consteval-if2.s /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C: In function ' constexpr bool f()': /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:7:6: warning: 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-exten sions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:7:22: error: e xpected ';' before '{' token /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:7:6: error: 'i f consteval' requires compound statement /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:10:10: warning : 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-ext ensions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:10:27: error: expected ';' before '{' token /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:10:10: error: 'if consteval' requires compound statement /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:13:6: warning: 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-exte nsions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:13:6: error: ' if consteval' requires compound statement /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:15:8: warning: 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-exte nsions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:15:21: error: 'if consteval' requires compound statement /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:17:6: warning: 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-exte nsions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:17:19: error: 'if consteval' requires compound statement /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:20:8: warning: 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-exte nsions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:23:5: error: ' if consteval' requires compound statement /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C: In function ' constexpr int baz(int)': /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:34:10: warning : 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-ext ensions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:36:16: error: 'x' is not a constant expression /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:42:6: warning: 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-exte nsions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:48:16: error: 'x' is not a constant expression /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:50:8: warning: 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-exte nsions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:52:16: error: 'x' is not a constant expression /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:54:6: warning: 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-exte nsions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C: In function 'constexpr int qux(int)': /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:66:10: warning: 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-extensions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:68:16: error: 'x' is not a constant expression /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:74:6: warning: 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-extensions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:82:8: warning: 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-extensions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:86:6: warning: 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-extensions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C: In function 'constexpr T corge(T)': /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:98:10: warning: 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-extensions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:106:6: warning: 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-extensions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:114:8: warning: 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-extensions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:118:6: warning: 'if consteval' only available with '-std=c++2b' or '-std=gnu++2b' [-Wc++23-extensions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C: In instantiation of 'constexpr T corge(T) [with T = int]': /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:128:16: required from here /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:100:16: error: 'x' is not a constant expression /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:112:16: error: 'x' is not a constant expression /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:116:16: error: 'x' is not a constant expression compiler exited with status 1 PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors, line 7) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 at line 8 (test for errors, line 7) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 at line 9 (test for warnings, line 7) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors, line 10) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 at line 11 (test for errors, line 10) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 at line 12 (test for warnings, line 10) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors, line 13) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 at line 14 (test for warnings, line 13) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors, line 15) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 at line 16 (test for warnings, line 15) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors, line 17) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 at line 18 (test for warnings, line 17) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for warnings, line 20) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors, line 23) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for warnings, line 34) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors, line 36) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for warnings, line 42) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors, line 48) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for warnings, line 50) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors, line 52) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for warnings, line 54) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for warnings, line 66) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors, line 68) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for warnings, line 74) FAIL: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors, line 80) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for warnings, line 82) FAIL: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors, line 84) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for warnings, line 86) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for warnings, line 98) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors, line 100) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for warnings, line 106) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors, line 112) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for warnings, line 114) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors, line 116) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for warnings, line 118) PASS: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for excess errors)