public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/101443] internal compiler error: in wide_int_to_tree_1, at tree.c:1519 Date: Wed, 14 Jul 2021 09:13:04 +0000 [thread overview] Message-ID: <bug-101443-4-BlV3XoTFkV@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-101443-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101443 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Reduced testcase for -O2: template <typename a> struct e { a c; }; template <typename d> struct f { void operator()(d g, d h) { g < h; } }; template <unsigned long, typename> struct n; template <long i, typename d> using j = typename n<i, d>::k; template <typename...> class ah {}; template <unsigned long i, typename ag, typename... l> struct n<i, ah<ag, l...>> : n<i - 1, ah<l...>> {}; template <typename ag, typename... l> struct n<0, ah<ag, l...>> { typedef ag k; }; template <int i, typename... ai> j<i, ah<ai...>> aj(ah<ai...>); template <typename m, int i> struct o { static bool am(int g, m h) { 0 < aj<i>(h) || o<m, 1>::am(g, h); return false; } }; template <typename... ap, typename... aq> void operator<(ah<ap...>, ah<aq...>) { using ar = o<ah<aq...>, 0>; ar::am; } template <typename... ai> ah<ai...> as(ai...); template <typename d> struct F { d operator*(); }; template <typename av> struct p { typedef F<av> ay; }; template <typename az, typename ba = f<az>> struct q { void operator[](az g) { typename p<e<az>>::ay i; bh()(g, (*i).c); } ba bh(); }; struct r { template <typename... bj> static int aj(bj... g) { auto a = as(g...); using bc = decltype(a); q<bc> b; b[a]; return 0; } template <typename... bj> static int bn(bj... g) { aj(g...); return 0; } }; int main() { r::bn(0, nullptr); } Even simpler testcase: decltype(nullptr) foo (); bool bar () { return 0 < foo () || foo () < 0; }
next prev parent reply other threads:[~2021-07-14 9:13 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-07-13 19:43 [Bug c++/101443] New: " rawiener at amazon dot com 2021-07-13 20:04 ` [Bug c++/101443] " pinskia at gcc dot gnu.org 2021-07-13 20:29 ` rawiener at amazon dot com 2021-07-13 21:07 ` pinskia at gcc dot gnu.org 2021-07-14 9:13 ` jakub at gcc dot gnu.org [this message] 2021-07-14 10:18 ` jakub at gcc dot gnu.org 2021-07-14 10:22 ` [Bug c++/101443] [9/10/11/12 Regression] " jakub at gcc dot gnu.org 2021-07-15 16:54 ` cvs-commit at gcc dot gnu.org 2021-07-15 16:55 ` [Bug c++/101443] [9/10/11 " jakub at gcc dot gnu.org 2021-07-18 23:29 ` cvs-commit at gcc dot gnu.org 2021-07-19 7:55 ` [Bug c++/101443] [9/10 " jakub at gcc dot gnu.org 2022-05-10 8:19 ` cvs-commit at gcc dot gnu.org 2022-05-11 6:21 ` cvs-commit at gcc dot gnu.org 2022-05-11 6:36 ` jakub at gcc dot gnu.org 2024-02-27 16:16 ` rawiener at amazon dot com
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-101443-4-BlV3XoTFkV@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).