public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107457] ICE when template lambda alias used as default template argument Date: Thu, 29 Feb 2024 16:11:12 +0000 [thread overview] Message-ID: <bug-107457-4-bufS9V2SrW@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-107457-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107457 Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Another test for the same problem: ``` template <typename Type> using LambdaType = decltype([] {}); template <typename Type, typename = LambdaType<Type>> class S; ``` 107457.C:3:25: internal compiler error: Segmentation fault 3 | using lambda = decltype([]() {}); | ^~~~~~~ 0x1ac234a crash_signal /home/mpolacek/src/gcc/gcc/toplev.cc:319 0x7fd3f489099f ??? /usr/src/debug/glibc-2.38-16.fc39.x86_64/signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0 0xeda764 begin_function_body() /home/mpolacek/src/gcc/gcc/cp/decl.cc:18398 0xf4eb05 start_lambda_function(tree_node*, tree_node*) /home/mpolacek/src/gcc/gcc/cp/lambda.cc:1700 0x1106d94 tsubst_lambda_expr(tree_node*, tree_node*, int, tree_node*) /home/mpolacek/src/gcc/gcc/cp/pt.cc:19748 0x11119fc tsubst_expr(tree_node*, tree_node*, int, tree_node*) /home/mpolacek/src/gcc/gcc/cp/pt.cc:21684 0x10f5523 tsubst(tree_node*, tree_node*, int, tree_node*) /home/mpolacek/src/gcc/gcc/cp/pt.cc:16895 0x10ef6e0 tsubst_decl /home/mpolacek/src/gcc/gcc/cp/pt.cc:15531 0x1113f4e instantiate_template(tree_node*, tree_node*, int) /home/mpolacek/src/gcc/gcc/cp/pt.cc:22100 0x1114a20 instantiate_alias_template /home/mpolacek/src/gcc/gcc/cp/pt.cc:22198 0x10f21c7 tsubst(tree_node*, tree_node*, int, tree_node*) /home/mpolacek/src/gcc/gcc/cp/pt.cc:16193 0x10cea1f lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*, int, int) /home/mpolacek/src/gcc/gcc/cp/pt.cc:10204 0x116c376 finish_template_type(tree_node*, tree_node*, int) /home/mpolacek/src/gcc/gcc/cp/semantics.cc:3948 0x103d7eb cp_parser_template_id /home/mpolacek/src/gcc/gcc/cp/parser.cc:19048 0x104d762 cp_parser_class_name /home/mpolacek/src/gcc/gcc/cp/parser.cc:26655 0x1023508 cp_parser_qualifying_entity /home/mpolacek/src/gcc/gcc/cp/parser.cc:7400 0x10229d6 cp_parser_nested_name_specifier_opt /home/mpolacek/src/gcc/gcc/cp/parser.cc:7082 0x1040456 cp_parser_simple_type_specifier /home/mpolacek/src/gcc/gcc/cp/parser.cc:20491 0x103f70d cp_parser_type_specifier /home/mpolacek/src/gcc/gcc/cp/parser.cc:20142 0x104a146 cp_parser_type_specifier_seq /home/mpolacek/src/gcc/gcc/cp/parser.cc:25175
next prev parent reply other threads:[~2024-02-29 16:11 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-10-29 13:41 [Bug c++/107457] New: " aandrejevas5 at gmail dot com 2022-10-29 19:35 ` [Bug c++/107457] " pinskia at gcc dot gnu.org 2024-02-29 16:11 ` mpolacek at gcc dot gnu.org [this message] 2024-04-12 19:20 ` ppalka at gcc dot gnu.org 2024-04-12 19:21 ` ppalka 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-107457-4-bufS9V2SrW@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).