public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/101051] New: [ICE] in splice_late_return_type, at cp/pt.c:29738
@ 2021-06-13 18:23 ldalessandro at gmail dot com
2021-06-21 16:32 ` [Bug c++/101051] [10/11/12 Regression] " mpolacek at gcc dot gnu.org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: ldalessandro at gmail dot com @ 2021-06-13 18:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101051
Bug ID: 101051
Summary: [ICE] in splice_late_return_type, at cp/pt.c:29738
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ldalessandro at gmail dot com
Target Milestone: ---
Following invalid code triggers ICE in 10, 11, and trunk.
```
template <class T>
class Foo
{
constexpr operator T() -> T {}
};
```
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/101051] [10/11/12 Regression] [ICE] in splice_late_return_type, at cp/pt.c:29738
2021-06-13 18:23 [Bug c++/101051] New: [ICE] in splice_late_return_type, at cp/pt.c:29738 ldalessandro at gmail dot com
@ 2021-06-21 16:32 ` mpolacek at gcc dot gnu.org
2021-06-21 18:40 ` [Bug c++/101051] [10/11/12 Regression] [ICE] in splice_late_return_type, at cp/pt.c:29738 since r10-6571-ga6ee556c7659877b marxin at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-06-21 16:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101051
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Summary|[ICE] in |[10/11/12 Regression] [ICE]
|splice_late_return_type, at |in splice_late_return_type,
|cp/pt.c:29738 |at cp/pt.c:29738
CC| |mliska at suse dot cz,
| |mpolacek at gcc dot gnu.org
Last reconfirmed| |2021-06-21
Ever confirmed|0 |1
Target Milestone|--- |10.4
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed, probably mine. Can't bisect at the moment. Martin, would you be
able to bisect this one?
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/101051] [10/11/12 Regression] [ICE] in splice_late_return_type, at cp/pt.c:29738 since r10-6571-ga6ee556c7659877b
2021-06-13 18:23 [Bug c++/101051] New: [ICE] in splice_late_return_type, at cp/pt.c:29738 ldalessandro at gmail dot com
2021-06-21 16:32 ` [Bug c++/101051] [10/11/12 Regression] " mpolacek at gcc dot gnu.org
@ 2021-06-21 18:40 ` marxin at gcc dot gnu.org
2021-09-27 22:16 ` [Bug c++/101051] [10/11/12 Regression] ICE in splice_late_return_type with trailing return type on a conversion operator, caused by r10-6571 pinskia at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-06-21 18:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101051
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[10/11/12 Regression] [ICE] |[10/11/12 Regression] [ICE]
|in splice_late_return_type, |in splice_late_return_type,
|at cp/pt.c:29738 |at cp/pt.c:29738 since
| |r10-6571-ga6ee556c7659877b
CC| |ppalka at gcc dot gnu.org
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Sure, started with r10-6571-ga6ee556c7659877b.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/101051] [10/11/12 Regression] ICE in splice_late_return_type with trailing return type on a conversion operator, caused by r10-6571
2021-06-13 18:23 [Bug c++/101051] New: [ICE] in splice_late_return_type, at cp/pt.c:29738 ldalessandro at gmail dot com
2021-06-21 16:32 ` [Bug c++/101051] [10/11/12 Regression] " mpolacek at gcc dot gnu.org
2021-06-21 18:40 ` [Bug c++/101051] [10/11/12 Regression] [ICE] in splice_late_return_type, at cp/pt.c:29738 since r10-6571-ga6ee556c7659877b marxin at gcc dot gnu.org
@ 2021-09-27 22:16 ` pinskia at gcc dot gnu.org
2021-09-27 22:16 ` pinskia at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-27 22:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101051
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aaron at aaronballman dot com
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 101209 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/101051] [10/11/12 Regression] ICE in splice_late_return_type with trailing return type on a conversion operator, caused by r10-6571
2021-06-13 18:23 [Bug c++/101051] New: [ICE] in splice_late_return_type, at cp/pt.c:29738 ldalessandro at gmail dot com
` (2 preceding siblings ...)
2021-09-27 22:16 ` [Bug c++/101051] [10/11/12 Regression] ICE in splice_late_return_type with trailing return type on a conversion operator, caused by r10-6571 pinskia at gcc dot gnu.org
@ 2021-09-27 22:16 ` pinskia at gcc dot gnu.org
2021-09-27 22:18 ` pinskia at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-27 22:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101051
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gscfq@t-online.de
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 102506 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/101051] [10/11/12 Regression] ICE in splice_late_return_type with trailing return type on a conversion operator, caused by r10-6571
2021-06-13 18:23 [Bug c++/101051] New: [ICE] in splice_late_return_type, at cp/pt.c:29738 ldalessandro at gmail dot com
` (3 preceding siblings ...)
2021-09-27 22:16 ` pinskia at gcc dot gnu.org
@ 2021-09-27 22:18 ` pinskia at gcc dot gnu.org
2022-01-20 12:56 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-27 22:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101051
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here are the testcases all together:
template <class T>
class Foo
{
constexpr operator T() -> T {}
};
struct S {
operator int() const -> double;
};
class A { operator auto*() -> int; };
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/101051] [10/11/12 Regression] ICE in splice_late_return_type with trailing return type on a conversion operator, caused by r10-6571
2021-06-13 18:23 [Bug c++/101051] New: [ICE] in splice_late_return_type, at cp/pt.c:29738 ldalessandro at gmail dot com
` (4 preceding siblings ...)
2021-09-27 22:18 ` pinskia at gcc dot gnu.org
@ 2022-01-20 12:56 ` rguenth at gcc dot gnu.org
2022-04-07 1:48 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-20 12:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101051
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/101051] [10/11/12 Regression] ICE in splice_late_return_type with trailing return type on a conversion operator, caused by r10-6571
2021-06-13 18:23 [Bug c++/101051] New: [ICE] in splice_late_return_type, at cp/pt.c:29738 ldalessandro at gmail dot com
` (5 preceding siblings ...)
2022-01-20 12:56 ` rguenth at gcc dot gnu.org
@ 2022-04-07 1:48 ` jason at gcc dot gnu.org
2022-04-07 3:27 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2022-04-07 1:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101051
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |jason at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/101051] [10/11/12 Regression] ICE in splice_late_return_type with trailing return type on a conversion operator, caused by r10-6571
2021-06-13 18:23 [Bug c++/101051] New: [ICE] in splice_late_return_type, at cp/pt.c:29738 ldalessandro at gmail dot com
` (6 preceding siblings ...)
2022-04-07 1:48 ` jason at gcc dot gnu.org
@ 2022-04-07 3:27 ` cvs-commit at gcc dot gnu.org
2022-04-12 20:14 ` [Bug c++/101051] [10/11 " cvs-commit at gcc dot gnu.org
2022-04-12 20:30 ` jason at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-04-07 3:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101051
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:f44a5c700f409b96ba923864158349700628133d
commit r12-8037-gf44a5c700f409b96ba923864158349700628133d
Author: Jason Merrill <jason@redhat.com>
Date: Wed Apr 6 21:57:33 2022 -0400
c++: conversion with trailing return type [PR101051]
We've had a diagnostic for this, but since r10-6571 added an assert to
splice_late_return_type, we need to diagnose before we call it.
PR c++/101051
gcc/cp/ChangeLog:
* decl.cc (grokdeclarator): Reject conversion with trailing return
sooner.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/trailing15.C: New test.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/101051] [10/11 Regression] ICE in splice_late_return_type with trailing return type on a conversion operator, caused by r10-6571
2021-06-13 18:23 [Bug c++/101051] New: [ICE] in splice_late_return_type, at cp/pt.c:29738 ldalessandro at gmail dot com
` (7 preceding siblings ...)
2022-04-07 3:27 ` cvs-commit at gcc dot gnu.org
@ 2022-04-12 20:14 ` cvs-commit at gcc dot gnu.org
2022-04-12 20:30 ` jason at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-04-12 20:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101051
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:25167a3d8cfc738deb4b2bfb74ad37fd8a0f1ca4
commit r11-9823-g25167a3d8cfc738deb4b2bfb74ad37fd8a0f1ca4
Author: Jason Merrill <jason@redhat.com>
Date: Wed Apr 6 21:57:33 2022 -0400
c++: conversion with trailing return type [PR101051]
We've had a diagnostic for this, but since r10-6571 added an assert to
splice_late_return_type, we need to diagnose before we call it.
PR c++/101051
gcc/cp/ChangeLog:
* decl.c (grokdeclarator): Reject conversion with trailing return
sooner.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/trailing15.C: New test.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/101051] [10/11 Regression] ICE in splice_late_return_type with trailing return type on a conversion operator, caused by r10-6571
2021-06-13 18:23 [Bug c++/101051] New: [ICE] in splice_late_return_type, at cp/pt.c:29738 ldalessandro at gmail dot com
` (8 preceding siblings ...)
2022-04-12 20:14 ` [Bug c++/101051] [10/11 " cvs-commit at gcc dot gnu.org
@ 2022-04-12 20:30 ` jason at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2022-04-12 20:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101051
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Target Milestone|10.4 |11.3
Resolution|--- |FIXED
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 11.3/12.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2022-04-12 20:30 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-13 18:23 [Bug c++/101051] New: [ICE] in splice_late_return_type, at cp/pt.c:29738 ldalessandro at gmail dot com
2021-06-21 16:32 ` [Bug c++/101051] [10/11/12 Regression] " mpolacek at gcc dot gnu.org
2021-06-21 18:40 ` [Bug c++/101051] [10/11/12 Regression] [ICE] in splice_late_return_type, at cp/pt.c:29738 since r10-6571-ga6ee556c7659877b marxin at gcc dot gnu.org
2021-09-27 22:16 ` [Bug c++/101051] [10/11/12 Regression] ICE in splice_late_return_type with trailing return type on a conversion operator, caused by r10-6571 pinskia at gcc dot gnu.org
2021-09-27 22:16 ` pinskia at gcc dot gnu.org
2021-09-27 22:18 ` pinskia at gcc dot gnu.org
2022-01-20 12:56 ` rguenth at gcc dot gnu.org
2022-04-07 1:48 ` jason at gcc dot gnu.org
2022-04-07 3:27 ` cvs-commit at gcc dot gnu.org
2022-04-12 20:14 ` [Bug c++/101051] [10/11 " cvs-commit at gcc dot gnu.org
2022-04-12 20:30 ` 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).