public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "max.kanold@nu-cost.com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/104470] internal compiler error: Segmentation fault compiling std::variant with -std=c++20 Date: Fri, 22 Apr 2022 11:57:36 +0000 [thread overview] Message-ID: <bug-104470-4-d3ooX692ZJ@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-104470-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104470 Max <max.kanold@nu-cost.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |max.kanold@nu-cost.com --- Comment #4 from Max <max.kanold@nu-cost.com> --- Not sure whether it helps, but here is a version of the same ICE without the struct having a member, see https://godbolt.org/z/4xjbcToxj ================================ #include <variant> template<typename T> struct A {}; template<typename T> using Var = std::variant<A<T>>; int main() { auto var = Var{}; } ================================ Here the compiler can clearly not deduce the type, so this is invalid code. Adding the type leads to valid code which is compiled as expected.
next prev parent reply other threads:[~2022-04-22 11:57 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-02-09 18:25 [Bug c++/104470] New: " serpent7776 at gmail dot com 2022-02-10 1:09 ` [Bug c++/104470] " pinskia at gcc dot gnu.org 2022-02-10 6:02 ` pinskia at gcc dot gnu.org 2022-02-10 8:18 ` pinskia at gcc dot gnu.org 2022-04-22 11:57 ` max.kanold@nu-cost.com [this message] 2022-04-22 15:03 ` mpolacek at gcc dot gnu.org 2022-04-22 15:10 ` [Bug c++/104470] [10/11/12 Regression] " mpolacek at gcc dot gnu.org 2022-04-26 22:34 ` jason at gcc dot gnu.org 2022-04-29 21:25 ` [Bug c++/104470] [10/11/12/13 " cvs-commit at gcc dot gnu.org 2022-05-04 21:59 ` cvs-commit at gcc dot gnu.org 2022-05-15 16:29 ` [Bug c++/104470] [10/11/12 " cvs-commit at gcc dot gnu.org 2022-06-28 10:48 ` [Bug c++/104470] [10/11 " jakub at gcc dot gnu.org 2023-07-07 10:42 ` [Bug c++/104470] [11 " 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-104470-4-d3ooX692ZJ@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).