public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/104624] New: [10/11/12 Regression] ICE in standard_conversion, at cp/call.cc:1213
@ 2022-02-21 21:30 gscfq@t-online.de
  2022-02-22 10:31 ` [Bug c++/104624] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gscfq@t-online.de @ 2022-02-21 21:30 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104624
           Summary: [10/11/12 Regression] ICE in standard_conversion, at
                    cp/call.cc:1213
           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 20200712 and 20200719 :


$ cat z1.cc
template <typename T>
auto f (T)
{
  auto a = [](auto ... i)
  {
    int x[][i] = { 0 };
  }();
}
void g ()
{
  f(0);
}


$ g++-12-20220220 -c z1.cc
z1.cc: In instantiation of 'f<int>(int)::<lambda(auto:1 ...)> [with auto:1 =
{}]':
z1.cc:7:4:   required from 'auto f(T) [with T = int]'
z1.cc:11:4:   required from here
z1.cc:6:9: internal compiler error: Segmentation fault
    6 |     int x[][i] = { 0 };
      |         ^
0xda25ef crash_signal
        ../../gcc/toplev.cc:322
0x6cf5a7 standard_conversion
        ../../gcc/cp/call.cc:1213
0x6d1d4d implicit_conversion_1
        ../../gcc/cp/call.cc:2031
0x6d1d4d implicit_conversion
        ../../gcc/cp/call.cc:2132
0x6e2e1c build_converted_constant_expr_internal
        ../../gcc/cp/call.cc:4498
0x72fe71 compute_array_index_type_loc
        ../../gcc/cp/decl.cc:10850
0x82da3e tsubst(tree_node*, tree_node*, int, tree_node*)
        ../../gcc/cp/pt.cc:15677
0x82da60 tsubst(tree_node*, tree_node*, int, tree_node*)
        ../../gcc/cp/pt.cc:16105
0x82dfe3 tsubst(tree_node*, tree_node*, int, tree_node*)
        ../../gcc/cp/pt.cc:15622
0x837ddd tsubst_decl
        ../../gcc/cp/pt.cc:14929
0x82dec7 tsubst(tree_node*, tree_node*, int, tree_node*)
        ../../gcc/cp/pt.cc:15551
0x83d3a2 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc/cp/pt.cc:18537
0x83b097 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc/cp/pt.cc:18780
0x83b097 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc/cp/pt.cc:18780
0x82f7d1 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
        ../../gcc/cp/pt.cc:26351
0x82f7d1 instantiate_body
        ../../gcc/cp/pt.cc:26351
0x830789 instantiate_decl(tree_node*, bool, bool)
        ../../gcc/cp/pt.cc:26644
0x755e23 maybe_instantiate_decl(tree_node*)
        ../../gcc/cp/decl2.cc:5587
0x7569a8 mark_used(tree_node*, int)
        ../../gcc/cp/decl2.cc:5880
0x6dbf16 build_over_call
        ../../gcc/cp/call.cc:9850

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

end of thread, other threads:[~2023-07-07 10:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-21 21:30 [Bug c++/104624] New: [10/11/12 Regression] ICE in standard_conversion, at cp/call.cc:1213 gscfq@t-online.de
2022-02-22 10:31 ` [Bug c++/104624] " rguenth at gcc dot gnu.org
2022-02-22 15:30 ` gscfq@t-online.de
2022-02-22 19:17 ` mpolacek at gcc dot gnu.org
2022-04-26  3:53 ` jason at gcc dot gnu.org
2022-04-26  3:54 ` cvs-commit at gcc dot gnu.org
2022-06-28 10:48 ` [Bug c++/104624] [10/11 " jakub at gcc dot gnu.org
2023-07-07 10:42 ` [Bug c++/104624] [11 " rguenth 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).