public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108496] New: [13 Regression] NRV ICE since r13-4469
@ 2023-01-23 12:11 jakub at gcc dot gnu.org
  2023-01-23 12:11 ` [Bug c++/108496] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-01-23 12:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108496
           Summary: [13 Regression] NRV ICE since r13-4469
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

Since r13-4469-gd19aa6af6634b1e97f38431ad091f3b3f12baf2f we ICE with -O2 on:
struct S { long a, b, c; } s;

template <int, typename>
S foo (S);

template <>
S
foo <0, long> (S)
{
  return s;
}

template S foo <0, long> (S);

during GIMPLE pass: nrv
rh2163383.ii: In function ‘S foo(S) [with int <anonymous> = 0;
<template-parameter-1-2> = long int]’:
rh2163383.ii:8:1: internal compiler error: in execute, at tree-nrv.cc:179
    8 | foo <0, long> (S)
      | ^~~~~~~~~~~~~
tree-nrv.cc:179 is:
                gcc_assert (ret_val == result);

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

end of thread, other threads:[~2023-01-23 19:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-23 12:11 [Bug c++/108496] New: [13 Regression] NRV ICE since r13-4469 jakub at gcc dot gnu.org
2023-01-23 12:11 ` [Bug c++/108496] " jakub at gcc dot gnu.org
2023-01-23 13:01 ` rguenth at gcc dot gnu.org
2023-01-23 14:49 ` jason at gcc dot gnu.org
2023-01-23 19:09 ` cvs-commit at gcc dot gnu.org
2023-01-23 19:10 ` jason 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).