public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107938] [11/12/13 Regression] ICE directly returning `this` of `extern` variable in template Date: Wed, 30 Nov 2022 19:23:03 +0000 [thread overview] Message-ID: <bug-107938-4-MDW4qXxyJw@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-107938-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107938 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |11.4 Last reconfirmed| |2022-11-30 Summary|ICE directly returning |[11/12/13 Regression] ICE |`this` of `extern` variable |directly returning `this` |in template |of `extern` variable in | |template Known to work| |10.4.0 Ever confirmed|0 |1 Keywords| |needs-bisection Status|UNCONFIRMED |NEW Known to fail| |11.1.0 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. A regression from GCC 10.4.0. A C++14 testcase (removing the auto from the operator()): ``` struct Q { int n; constexpr const Q* operator()(int) const { return this; } }; extern const Q q; template<int> constexpr const Q* p = q(0); ```
next prev parent reply other threads:[~2022-11-30 19:23 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-11-30 19:09 [Bug c++/107938] New: " johelegp at gmail dot com 2022-11-30 19:23 ` pinskia at gcc dot gnu.org [this message] 2022-11-30 19:30 ` [Bug c++/107938] [11/12/13 Regression] " pinskia at gcc dot gnu.org 2022-12-01 8:03 ` rguenth at gcc dot gnu.org 2022-12-02 14:52 ` [Bug c++/107938] [11/12/13 Regression] ICE directly returning `this` of `extern` variable in template since r11-557 jakub at gcc dot gnu.org 2023-02-13 18:09 ` mpolacek at gcc dot gnu.org 2023-02-23 23:52 ` mpolacek at gcc dot gnu.org 2023-02-28 15:10 ` cvs-commit at gcc dot gnu.org 2023-03-04 17:43 ` [Bug c++/107938] [11/12 " cvs-commit at gcc dot gnu.org 2023-03-04 18:24 ` mpolacek 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-107938-4-MDW4qXxyJw@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).