public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/95675] New: internal compiler error: in build_over_call
@ 2020-06-14 23:35 rafael at espindo dot la
2020-06-14 23:35 ` [Bug c++/95675] " rafael at espindo dot la
` (14 more replies)
0 siblings, 15 replies; 16+ messages in thread
From: rafael at espindo dot la @ 2020-06-14 23:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675
Bug ID: 95675
Summary: internal compiler error: in build_over_call
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: rafael at espindo dot la
Target Milestone: ---
Created attachment 48729
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48729&action=edit
testcase
With current master (06712fc68dc9843d9af7c7ac10047f49d305ad76), running
g++ -S test.ii -std=c++20
In the attached file causes
test.ii:511:41: internal compiler error: in build_over_call, at cp/call.c:8971
g++ 9 has no problems with it.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/95675] internal compiler error: in build_over_call
2020-06-14 23:35 [Bug c++/95675] New: internal compiler error: in build_over_call rafael at espindo dot la
@ 2020-06-14 23:35 ` rafael at espindo dot la
2020-06-15 6:55 ` marxin at gcc dot gnu.org
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: rafael at espindo dot la @ 2020-06-14 23:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675
Rafael Avila de Espindola <rafael at espindo dot la> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|unknown |11.0
--- Comment #1 from Rafael Avila de Espindola <rafael at espindo dot la> ---
Sorry, gcc *10* has no problem with it.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/95675] internal compiler error: in build_over_call
2020-06-14 23:35 [Bug c++/95675] New: internal compiler error: in build_over_call rafael at espindo dot la
2020-06-14 23:35 ` [Bug c++/95675] " rafael at espindo dot la
@ 2020-06-15 6:55 ` marxin at gcc dot gnu.org
2020-07-07 14:58 ` [Bug c++/95675] [8/9/10/11 Regression] " ppalka at gcc dot gnu.org
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-06-15 6:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
CC| |jason at gcc dot gnu.org,
| |marxin at gcc dot gnu.org,
| |mpolacek at gcc dot gnu.org
Last reconfirmed| |2020-06-15
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
With -std=c++2a -fconcepts it started with r9-6542-gf869f40780836d17.
It was rejected before that.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/95675] [8/9/10/11 Regression] internal compiler error: in build_over_call
2020-06-14 23:35 [Bug c++/95675] New: internal compiler error: in build_over_call rafael at espindo dot la
2020-06-14 23:35 ` [Bug c++/95675] " rafael at espindo dot la
2020-06-15 6:55 ` marxin at gcc dot gnu.org
@ 2020-07-07 14:58 ` ppalka at gcc dot gnu.org
2020-07-07 14:58 ` ppalka at gcc dot gnu.org
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ppalka at gcc dot gnu.org @ 2020-07-07 14:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-checking
CC| |ppalka at gcc dot gnu.org
Known to fail| |10.1.0, 8.4.0, 9.3.0
Summary|internal compiler error: in |[8/9/10/11 Regression]
|build_over_call |internal compiler error: in
| |build_over_call
Known to work| |6.4.0
--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Here's a reduced testcase that ICEs when compiled with -std=c++17 since r7-3599
(when GCC is configured with --enable-checking=yes):
$ cat 95675.C
struct a {};
template <typename> struct b;
template <typename bq, typename br> struct b<bq(br)> {
decltype(bq()(br())) c;
};
struct e {
operator a();
};
b<e (*(e))(a)> d;
$ g++ -std=c++17 95675.C
95675.C: In instantiation of ‘struct b<e (*(e))(a)>’:
95675.C:9:16: required from here
95675.C:4:16: internal compiler error: in build_over_call, at cp/call.c:8945
4 | decltype(bq()(br())) c;
| ~~~~^~~~~~
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/95675] [8/9/10/11 Regression] internal compiler error: in build_over_call
2020-06-14 23:35 [Bug c++/95675] New: internal compiler error: in build_over_call rafael at espindo dot la
` (2 preceding siblings ...)
2020-07-07 14:58 ` [Bug c++/95675] [8/9/10/11 Regression] " ppalka at gcc dot gnu.org
@ 2020-07-07 14:58 ` ppalka at gcc dot gnu.org
2020-07-22 15:49 ` ppalka at gcc dot gnu.org
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ppalka at gcc dot gnu.org @ 2020-07-07 14:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |8.5
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/95675] [8/9/10/11 Regression] internal compiler error: in build_over_call
2020-06-14 23:35 [Bug c++/95675] New: internal compiler error: in build_over_call rafael at espindo dot la
` (3 preceding siblings ...)
2020-07-07 14:58 ` ppalka at gcc dot gnu.org
@ 2020-07-22 15:49 ` ppalka at gcc dot gnu.org
2020-08-12 12:25 ` ppalka at gcc dot gnu.org
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ppalka at gcc dot gnu.org @ 2020-07-22 15:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675
--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Here's a non-template testcase that ICEs from the same assert in
build_over_call (with -std=c++17, --enable-checking=yes):
struct b {};
b operator|(b, b) { return {}; }
b e, f, g;
using h = decltype(e | f | g);
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/95675] [8/9/10/11 Regression] internal compiler error: in build_over_call
2020-06-14 23:35 [Bug c++/95675] New: internal compiler error: in build_over_call rafael at espindo dot la
` (4 preceding siblings ...)
2020-07-22 15:49 ` ppalka at gcc dot gnu.org
@ 2020-08-12 12:25 ` ppalka at gcc dot gnu.org
2020-10-16 0:00 ` mpolacek at gcc dot gnu.org
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ppalka at gcc dot gnu.org @ 2020-08-12 12:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hewillk at gmail dot com
--- Comment #5 from Patrick Palka <ppalka at gcc dot gnu.org> ---
*** Bug 96576 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/95675] [8/9/10/11 Regression] internal compiler error: in build_over_call
2020-06-14 23:35 [Bug c++/95675] New: internal compiler error: in build_over_call rafael at espindo dot la
` (5 preceding siblings ...)
2020-08-12 12:25 ` ppalka at gcc dot gnu.org
@ 2020-10-16 0:00 ` mpolacek at gcc dot gnu.org
2021-01-14 9:01 ` rguenth at gcc dot gnu.org
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-10-16 0:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Comment 4 test started with r240845.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/95675] [8/9/10/11 Regression] internal compiler error: in build_over_call
2020-06-14 23:35 [Bug c++/95675] New: internal compiler error: in build_over_call rafael at espindo dot la
` (6 preceding siblings ...)
2020-10-16 0:00 ` mpolacek at gcc dot gnu.org
@ 2021-01-14 9:01 ` rguenth at gcc dot gnu.org
2021-02-10 15:03 ` ppalka at gcc dot gnu.org
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-01-14 9:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/95675] [8/9/10/11 Regression] internal compiler error: in build_over_call
2020-06-14 23:35 [Bug c++/95675] New: internal compiler error: in build_over_call rafael at espindo dot la
` (7 preceding siblings ...)
2021-01-14 9:01 ` rguenth at gcc dot gnu.org
@ 2021-02-10 15:03 ` ppalka at gcc dot gnu.org
2021-03-03 4:24 ` jason at gcc dot gnu.org
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-02-10 15:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |david at doublewise dot net
--- Comment #7 from Patrick Palka <ppalka at gcc dot gnu.org> ---
*** Bug 99016 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/95675] [8/9/10/11 Regression] internal compiler error: in build_over_call
2020-06-14 23:35 [Bug c++/95675] New: internal compiler error: in build_over_call rafael at espindo dot la
` (8 preceding siblings ...)
2021-02-10 15:03 ` ppalka at gcc dot gnu.org
@ 2021-03-03 4:24 ` jason at gcc dot gnu.org
2021-03-03 13:47 ` cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: jason at gcc dot gnu.org @ 2021-03-03 4:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
Status|NEW |ASSIGNED
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/95675] [8/9/10/11 Regression] internal compiler error: in build_over_call
2020-06-14 23:35 [Bug c++/95675] New: internal compiler error: in build_over_call rafael at espindo dot la
` (9 preceding siblings ...)
2021-03-03 4:24 ` jason at gcc dot gnu.org
@ 2021-03-03 13:47 ` cvs-commit at gcc dot gnu.org
2021-03-04 4:49 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-03-03 13:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675
--- Comment #8 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:74aee6d20872e8d87558eb5bf601042e3ed3fb2a
commit r11-7481-g74aee6d20872e8d87558eb5bf601042e3ed3fb2a
Author: Jason Merrill <jason@redhat.com>
Date: Tue Mar 2 23:59:00 2021 -0500
c++: C++17 and decltype of multi-operator expression [PR95675]
A call that is the immediate operand of decltype has special semantics: no
temporary is produced, so it's OK for the return type to be e.g.
incomplete.
But we were treating (e | f) the same way, which confused overload
resolution when we then tried to evaluate ... | g.
Fixed by making build_temp do what its name says, and force the C++17
temporary materialization conversion.
gcc/cp/ChangeLog:
PR c++/95675
* call.c (build_temp): Wrap a CALL_EXPR in a TARGET_EXPR
if it didn't get one before.
gcc/testsuite/ChangeLog:
PR c++/95675
* g++.dg/cpp0x/decltype-call5.C: New test.
* g++.dg/cpp0x/decltype-call6.C: New test.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/95675] [8/9/10/11 Regression] internal compiler error: in build_over_call
2020-06-14 23:35 [Bug c++/95675] New: internal compiler error: in build_over_call rafael at espindo dot la
` (10 preceding siblings ...)
2021-03-03 13:47 ` cvs-commit at gcc dot gnu.org
@ 2021-03-04 4:49 ` cvs-commit at gcc dot gnu.org
2021-03-04 5:13 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-03-04 4:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:371c7a82833df5d84392838cf2bf95b4da88655c
commit r10-9414-g371c7a82833df5d84392838cf2bf95b4da88655c
Author: Jason Merrill <jason@redhat.com>
Date: Tue Mar 2 23:59:00 2021 -0500
c++: C++17 and decltype of multi-operator expression [PR95675]
A call that is the immediate operand of decltype has special semantics: no
temporary is produced, so it's OK for the return type to be e.g.
incomplete.
But we were treating (e | f) the same way, which confused overload
resolution when we then tried to evaluate ... | g.
Fixed by making build_temp do what its name says, and force the C++17
temporary materialization conversion.
gcc/cp/ChangeLog:
PR c++/95675
* call.c (build_temp): Wrap a CALL_EXPR in a TARGET_EXPR
if it didn't get one before.
gcc/testsuite/ChangeLog:
PR c++/95675
* g++.dg/cpp0x/decltype-call5.C: New test.
* g++.dg/cpp0x/decltype-call6.C: New test.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/95675] [8/9/10/11 Regression] internal compiler error: in build_over_call
2020-06-14 23:35 [Bug c++/95675] New: internal compiler error: in build_over_call rafael at espindo dot la
` (11 preceding siblings ...)
2021-03-04 4:49 ` cvs-commit at gcc dot gnu.org
@ 2021-03-04 5:13 ` cvs-commit at gcc dot gnu.org
2021-03-25 16:11 ` jason at gcc dot gnu.org
2021-04-02 13:30 ` ppalka at gcc dot gnu.org
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-03-04 5:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:e90b052caf74dcc7529e6b2cc0b0688eebf53c74
commit r9-9264-ge90b052caf74dcc7529e6b2cc0b0688eebf53c74
Author: Jason Merrill <jason@redhat.com>
Date: Tue Mar 2 23:59:00 2021 -0500
c++: C++17 and decltype of multi-operator expression [PR95675]
A call that is the immediate operand of decltype has special semantics: no
temporary is produced, so it's OK for the return type to be e.g.
incomplete.
But we were treating (e | f) the same way, which confused overload
resolution when we then tried to evaluate ... | g.
Fixed by making build_temp do what its name says, and force the C++17
temporary materialization conversion.
gcc/cp/ChangeLog:
PR c++/95675
* call.c (build_temp): Wrap a CALL_EXPR in a TARGET_EXPR
if it didn't get one before.
gcc/testsuite/ChangeLog:
PR c++/95675
* g++.dg/cpp0x/decltype-call5.C: New test.
* g++.dg/cpp0x/decltype-call6.C: New test.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/95675] [8/9/10/11 Regression] internal compiler error: in build_over_call
2020-06-14 23:35 [Bug c++/95675] New: internal compiler error: in build_over_call rafael at espindo dot la
` (12 preceding siblings ...)
2021-03-04 5:13 ` cvs-commit at gcc dot gnu.org
@ 2021-03-25 16:11 ` jason at gcc dot gnu.org
2021-04-02 13:30 ` ppalka at gcc dot gnu.org
14 siblings, 0 replies; 16+ messages in thread
From: jason at gcc dot gnu.org @ 2021-03-25 16:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Target Milestone|8.5 |9.4
Status|ASSIGNED |RESOLVED
--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 9.4/10.3/11.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c++/95675] [8/9/10/11 Regression] internal compiler error: in build_over_call
2020-06-14 23:35 [Bug c++/95675] New: internal compiler error: in build_over_call rafael at espindo dot la
` (13 preceding siblings ...)
2021-03-25 16:11 ` jason at gcc dot gnu.org
@ 2021-04-02 13:30 ` ppalka at gcc dot gnu.org
14 siblings, 0 replies; 16+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-04-02 13:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95675
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |doko at debian dot org
--- Comment #12 from Patrick Palka <ppalka at gcc dot gnu.org> ---
*** Bug 97962 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2021-04-02 13:30 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-14 23:35 [Bug c++/95675] New: internal compiler error: in build_over_call rafael at espindo dot la
2020-06-14 23:35 ` [Bug c++/95675] " rafael at espindo dot la
2020-06-15 6:55 ` marxin at gcc dot gnu.org
2020-07-07 14:58 ` [Bug c++/95675] [8/9/10/11 Regression] " ppalka at gcc dot gnu.org
2020-07-07 14:58 ` ppalka at gcc dot gnu.org
2020-07-22 15:49 ` ppalka at gcc dot gnu.org
2020-08-12 12:25 ` ppalka at gcc dot gnu.org
2020-10-16 0:00 ` mpolacek at gcc dot gnu.org
2021-01-14 9:01 ` rguenth at gcc dot gnu.org
2021-02-10 15:03 ` ppalka at gcc dot gnu.org
2021-03-03 4:24 ` jason at gcc dot gnu.org
2021-03-03 13:47 ` cvs-commit at gcc dot gnu.org
2021-03-04 4:49 ` cvs-commit at gcc dot gnu.org
2021-03-04 5:13 ` cvs-commit at gcc dot gnu.org
2021-03-25 16:11 ` jason at gcc dot gnu.org
2021-04-02 13:30 ` ppalka 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).