public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105229] New: [11/12 Regression] ICE in lookup_template_class_1, at cp/pt.cc:10111
@ 2022-04-11 16:55 gscfq@t-online.de
  2022-04-11 17:10 ` [Bug c++/105229] " mpolacek at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gscfq@t-online.de @ 2022-04-11 16:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105229

            Bug ID: 105229
           Summary: [11/12 Regression] ICE in lookup_template_class_1, at
                    cp/pt.cc:10111
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started between 20200503 and 20200510 :


$ cat z1.cc
template <typename> void bar ()
{
  [] <int> {}.operator () <> ();
}
void foo ()
{
  bar<int> ();
}


$ g++-12-20220410 -c z1.cc
z1.cc: In instantiation of 'void bar() [with <template-parameter-1-1> = int]':
z1.cc:7:12:   required from here
z1.cc:3:28: internal compiler error: in lookup_template_class_1, at
cp/pt.cc:10111
    3 |   [] <int> {}.operator () <> ();
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~^
0x990981 lookup_template_class_1
        ../../gcc/cp/pt.cc:10111
0x990981 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*,
int, int)
        ../../gcc/cp/pt.cc:10350
0x990cb2 tsubst_aggr_type
        ../../gcc/cp/pt.cc:13738
0x97a962 tsubst(tree_node*, tree_node*, int, tree_node*)
        ../../gcc/cp/pt.cc:15649
0x9a717b tsubst_baselink
        ../../gcc/cp/pt.cc:16453
0x976d2b tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../gcc/cp/pt.cc:21028
0x975385 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../gcc/cp/pt.cc:20658
0x99b274 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc/cp/pt.cc:19473
0x99918d tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc/cp/pt.cc:18486
0x999b9f tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc/cp/pt.cc:18458
0x99b233 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc/cp/pt.cc:18815
0x97f679 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc/cp/pt.cc:18444
0x97f679 instantiate_body
        ../../gcc/cp/pt.cc:26393
0x980da7 instantiate_decl(tree_node*, bool, bool)
        ../../gcc/cp/pt.cc:26685
0x9c780b instantiate_pending_templates(int)
        ../../gcc/cp/pt.cc:26764
0x8281e6 c_parse_final_cleanups()
        ../../gcc/cp/decl2.cc:5113

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-05-06 18:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-11 16:55 [Bug c++/105229] New: [11/12 Regression] ICE in lookup_template_class_1, at cp/pt.cc:10111 gscfq@t-online.de
2022-04-11 17:10 ` [Bug c++/105229] " mpolacek at gcc dot gnu.org
2022-04-12  7:43 ` rguenth at gcc dot gnu.org
2022-04-21  7:51 ` rguenth at gcc dot gnu.org
2023-03-23 19:00 ` [Bug c++/105229] [11/12/13 " pinskia at gcc dot gnu.org
2023-05-29 10:06 ` [Bug c++/105229] [11/12/13/14 " jakub at gcc dot gnu.org
2024-04-30 14:50 ` [Bug c++/105229] [11/12/13/14/15 " simartin at gcc dot gnu.org
2024-05-06 18:59 ` simartin at gcc dot gnu.org

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).