From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4627B3858417; Mon, 21 Feb 2022 19:38:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4627B3858417 From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/104620] New: FAIL: g++.dg/cpp23/consteval-if2.C -std=gnu++20 (test for errors) Date: Mon, 21 Feb 2022 19:38:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget cf_gccbuild Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2022 19:38:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104620 Bug ID: 104620 Summary: FAIL: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++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=3Dgnu++20 (test for errors, line 8= 0) FAIL: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++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/back= ward -I/home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/util -fmessage-length=3D0 -std=3Dgnu ++20 -S -o consteval-if2.s /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C: In funct= ion ' constexpr bool f()': /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:7:6: warn= ing: 'if consteval' only available with '-std=3Dc++2b' or '-std=3Dgnu++2b' [-Wc++23-exten sions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:7:22: err= or: e xpected ';' before '{' token /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:7:6: erro= r: '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=3Dc++2b' or '-std=3Dgnu++2b' [-Wc++23-ext ensions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:10:27: er= ror: expected ';' before '{' token /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:10:10: er= ror: '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=3Dc++2b' or '-std=3Dgnu++2b' [-Wc++23-exte nsions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:13:6: err= or: ' 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=3Dc++2b' or '-std=3Dgnu++2b' [-Wc++23-exte nsions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:15:21: er= ror: '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=3Dc++2b' or '-std=3Dgnu++2b' [-Wc++23-exte nsions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:17:19: er= ror: '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=3Dc++2b' or '-std=3Dgnu++2b' [-Wc++23-exte nsions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:23:5: err= or: ' if consteval' requires compound statement /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C: In funct= ion ' 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=3Dc++2b' or '-std=3Dgnu++2b' [-Wc++23-ext ensions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:36:16: er= ror: '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=3Dc++2b' or '-std=3Dgnu++2b' [-Wc++23-exte nsions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:48:16: er= ror: '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=3Dc++2b' or '-std=3Dgnu++2b' [-Wc++23-exte nsions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:52:16: er= ror: '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=3Dc++2b' or '-std=3Dgnu++2b' [-Wc++23-exte nsions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C: In funct= ion '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=3Dc++2b' or '-std=3Dgnu++= 2b' [-Wc++23-extensions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:68:16: er= ror: '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=3Dc++2b' or '-std=3Dgnu++= 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=3Dc++2b' or '-std=3Dgnu++= 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=3Dc++2b' or '-std=3Dgnu++= 2b' [-Wc++23-extensions] /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C: In funct= ion '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=3Dc++2b' or '-std=3Dgnu++= 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=3Dc++2b' or '-std=3Dgnu++= 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=3Dc++2b' or '-std=3Dgnu++= 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=3Dc++2b' or '-std=3Dgnu++= 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 =3D int]': /home/dave/gnu/gcc/gcc/gcc/testsuite/g++.dg/cpp23/consteval-if2.C:128:16:= =20=20 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=3Dgnu++20 (test for errors, line = 7) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 at line 8 (test for err= ors, line 7) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 at line 9 (test for war= nings, line 7) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for errors, line = 10) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 at line 11 (test for er= rors, line 10) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 at line 12 (test for warnings, line 10) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for errors, line = 13) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 at line 14 (test for warnings, line 13) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for errors, line = 15) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 at line 16 (test for warnings, line 15) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for errors, line = 17) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 at line 18 (test for warnings, line 17) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for warnings, lin= e 20) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for errors, line = 23) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for warnings, lin= e 34) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for errors, line = 36) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for warnings, lin= e 42) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for errors, line = 48) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for warnings, lin= e 50) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for errors, line = 52) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for warnings, lin= e 54) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for warnings, lin= e 66) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for errors, line = 68) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for warnings, lin= e 74) FAIL: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for errors, line = 80) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for warnings, lin= e 82) FAIL: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for errors, line = 84) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for warnings, lin= e 86) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for warnings, lin= e 98) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for errors, line = 100) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for warnings, lin= e 106) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for errors, line = 112) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for warnings, lin= e 114) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for errors, line = 116) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for warnings, lin= e 118) PASS: g++.dg/cpp23/consteval-if2.C -std=3Dgnu++20 (test for excess errors)=