public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "danglin at gcc dot gnu.org" <gcc-bugzilla@gcc.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 [thread overview] Message-ID: <bug-104620-4@http.gcc.gnu.org/bugzilla/> (raw) 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)
next reply other threads:[~2022-02-21 19:38 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-02-21 19:38 danglin at gcc dot gnu.org [this message] 2022-03-23 18:04 ` [Bug c++/104620] " mpolacek at gcc dot gnu.org 2022-03-23 18:42 ` mpolacek at gcc dot gnu.org 2022-03-23 20:35 ` ppalka at gcc dot gnu.org 2022-03-24 12:21 ` jakub at gcc dot gnu.org 2022-03-24 13:29 ` jakub at gcc dot gnu.org 2022-03-24 13:31 ` ppalka at gcc dot gnu.org 2022-03-24 13:37 ` ppalka at gcc dot gnu.org 2022-03-24 14:29 ` ppalka at gcc dot gnu.org 2022-03-24 15:21 ` jason at gcc dot gnu.org 2022-03-24 15:42 ` cvs-commit at gcc dot gnu.org 2022-03-24 17:19 ` ppalka at gcc dot gnu.org 2022-03-26 23:01 ` jason at gcc dot gnu.org 2022-05-06 8:32 ` jakub at gcc dot gnu.org 2023-05-08 12:23 ` rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-104620-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).