public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108390] New: ICE in fold_convert_loc, at fold-const.cc:2504 partial ordering between array types
@ 2023-01-13  0:47 ed at catmur dot uk
  2023-01-13  1:08 ` [Bug c++/108390] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ed at catmur dot uk @ 2023-01-13  0:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108390
           Summary: ICE in fold_convert_loc, at fold-const.cc:2504 partial
                    ordering between array types
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ed at catmur dot uk
  Target Milestone: ---

template<class T, T t> long f(int(*)[t], T(*)[t]);
template<class T, int i> int f(int(*)[i], T(*)[i]);
int n = f<int, 2>(0, 0);

<source>:4:18: internal compiler error: in fold_convert_loc, at
fold-const.cc:2504
    4 | int n = f<int, 2>(0, 0);
      |         ~~~~~~~~~^~~~~~
0x23975be internal_error(char const*, ...)
        ???:0
0xa693ae fancy_abort(char const*, int, char const*)
        ???:0
0xc99848 more_specialized_fn(tree_node*, tree_node*, int)
        ???:0
0xa97529 build_new_function_call(tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
        ???:0
0xcb6fd4 finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
        ???:0
0xc43be7 c_parse_file()
        ???:0
0xd7fd79 c_common_parse_file()
        ???:0

Godbolt says this is bad back to 8.1; before that it was ambiguous.

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

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-13  0:47 [Bug c++/108390] New: ICE in fold_convert_loc, at fold-const.cc:2504 partial ordering between array types ed at catmur dot uk
2023-01-13  1:08 ` [Bug c++/108390] " pinskia at gcc dot gnu.org
2023-01-13  1:19 ` pinskia at gcc dot gnu.org
2023-01-13  8:15 ` [Bug c++/108390] ICE in fold_convert_loc, at fold-const.cc:2504 partial ordering between array types since r8-4678-g6296cf8e099aae43 marxin at gcc dot gnu.org
2023-01-13  9:24 ` [Bug c++/108390] [10/11/12/13 Regression] " jakub at gcc dot gnu.org
2023-03-22 19:30 ` cvs-commit at gcc dot gnu.org
2023-07-07 10:44 ` [Bug c++/108390] [11/12 " 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).