public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/97597] New: [11 Regression] ICE in build_over_call, at cp/call.c:9034
@ 2020-10-27 15:46 asolokha at gmx dot com
2020-10-27 15:48 ` [Bug c++/97597] " mpolacek at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: asolokha at gmx dot com @ 2020-10-27 15:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97597
Bug ID: 97597
Summary: [11 Regression] ICE in build_over_call, at
cp/call.c:9034
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: asolokha at gmx dot com
Target Milestone: ---
g++-11.0.0-alpha20201025 snapshot (g:308e40331f9d2820f8286769b5fc764671187364)
ICEs when compiling the following testcase, reduced from
test/CodeGenCXX/copy-constructor-elim-2.cpp from the clang 10.0.1 test suite:
struct pq {
pq (const pq &);
};
struct a9 {
operator pq () const;
};
struct zp : pq {
zp (const a9 &k3) : pq (k3) { }
};
% g++-11.0.0 -c oowewmvl.cpp
oowewmvl.cpp: In constructor 'zp::zp(const a9&)':
oowewmvl.cpp:10:29: internal compiler error: in build_over_call, at
cp/call.c:9034
10 | zp (const a9 &k3) : pq (k3) { }
| ^
0x5fbf1b build_over_call
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/call.c:9034
0x8a29ec build_new_method_call_1
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/call.c:10439
0x8a75cb build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, tree_node*, int, tree_node**, int)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/call.c:10514
0x8a75cb build_special_member_call(tree_node*, tree_node*, vec<tree_node*,
va_gc, vl_embed>**, tree_node*, int, int)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/call.c:9917
0x971fdc expand_default_init
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/init.c:1986
0x971fdc expand_aggr_init_1
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/init.c:2101
0x978e4f emit_mem_initializers(tree_node*)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/init.c:1357
0x9ecf8f cp_parser_mem_initializer_list
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/parser.c:15401
0x9ecf8f cp_parser_ctor_initializer_opt
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/parser.c:15309
0x9ecf8f cp_parser_ctor_initializer_opt_and_function_body
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/parser.c:23272
0x9f0359 cp_parser_function_definition_after_declarator
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/parser.c:29182
0x9f174c cp_parser_late_parsing_for_member
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/parser.c:30084
0x9cd0c3 cp_parser_class_specifier_1
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/parser.c:24346
0x9cdfeb cp_parser_class_specifier
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/parser.c:24370
0x9cdfeb cp_parser_type_specifier
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/parser.c:17873
0x9cefb4 cp_parser_decl_specifier_seq
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/parser.c:14498
0x9cfdb4 cp_parser_simple_declaration
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/parser.c:13755
0x9fc666 cp_parser_declaration
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/parser.c:13575
0x9fccd0 cp_parser_translation_unit
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/parser.c:4793
0x9fccd0 c_parse_file()
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201025/work/gcc-11-20201025/gcc/cp/parser.c:44170
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/97597] [11 Regression] ICE in build_over_call, at cp/call.c:9034
2020-10-27 15:46 [Bug c++/97597] New: [11 Regression] ICE in build_over_call, at cp/call.c:9034 asolokha at gmx dot com
@ 2020-10-27 15:48 ` mpolacek at gcc dot gnu.org
2020-10-27 15:50 ` mpolacek at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-10-27 15:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97597
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Target Milestone|--- |11.0
Last reconfirmed| |2020-10-27
CC| |mpolacek at gcc dot gnu.org
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/97597] [11 Regression] ICE in build_over_call, at cp/call.c:9034
2020-10-27 15:46 [Bug c++/97597] New: [11 Regression] ICE in build_over_call, at cp/call.c:9034 asolokha at gmx dot com
2020-10-27 15:48 ` [Bug c++/97597] " mpolacek at gcc dot gnu.org
@ 2020-10-27 15:50 ` mpolacek at gcc dot gnu.org
2020-12-22 19:47 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-10-27 15:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97597
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
Priority|P3 |P1
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r11-2704:
commit 320054784250e572cb75d6f69ab44b2330d61d8b
Author: Jason Merrill <jason@redhat.com>
Date: Wed Aug 12 05:45:02 2020 -0400
c++: Copy elision and [[no_unique_address]]. [PR93711]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/97597] [11 Regression] ICE in build_over_call, at cp/call.c:9034
2020-10-27 15:46 [Bug c++/97597] New: [11 Regression] ICE in build_over_call, at cp/call.c:9034 asolokha at gmx dot com
2020-10-27 15:48 ` [Bug c++/97597] " mpolacek at gcc dot gnu.org
2020-10-27 15:50 ` mpolacek at gcc dot gnu.org
@ 2020-12-22 19:47 ` jason at gcc dot gnu.org
2020-12-23 22:11 ` cvs-commit at gcc dot gnu.org
2021-01-21 16:52 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2020-12-22 19:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97597
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/97597] [11 Regression] ICE in build_over_call, at cp/call.c:9034
2020-10-27 15:46 [Bug c++/97597] New: [11 Regression] ICE in build_over_call, at cp/call.c:9034 asolokha at gmx dot com
` (2 preceding siblings ...)
2020-12-22 19:47 ` jason at gcc dot gnu.org
@ 2020-12-23 22:11 ` cvs-commit at gcc dot gnu.org
2021-01-21 16:52 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-23 22:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97597
--- Comment #3 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:612cf351c700b6216209e3f3f4b3a0959bf2dee7
commit r11-6324-g612cf351c700b6216209e3f3f4b3a0959bf2dee7
Author: Jason Merrill <jason@redhat.com>
Date: Tue Dec 22 15:41:56 2020 -0500
c++: Fix initializing empty base from prvalue [PR97597]
unsafe_return_slot_p wasn't recognizing an empty base as
potentially-overlapping, which it definitely is.
The change to build_base_path is to make the virtual conversion also
recognized by is_empty_base_ref; unsafe_return_slot_p doesn't to handle
virtual conversions, but hypothetical future callers might.
gcc/cp/ChangeLog:
PR c++/97597
* class.c (is_empty_base_ref): New.
(build_base_path): Add NOP_EXPR after offset.
* cp-tree.h (is_empty_base_ref): Declare it.
* call.c (unsafe_return_slot_p): Call it.
gcc/testsuite/ChangeLog:
PR c++/97597
* g++.dg/init/empty3.C: New test.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/97597] [11 Regression] ICE in build_over_call, at cp/call.c:9034
2020-10-27 15:46 [Bug c++/97597] New: [11 Regression] ICE in build_over_call, at cp/call.c:9034 asolokha at gmx dot com
` (3 preceding siblings ...)
2020-12-23 22:11 ` cvs-commit at gcc dot gnu.org
@ 2021-01-21 16:52 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2021-01-21 16:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97597
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-01-21 16:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-27 15:46 [Bug c++/97597] New: [11 Regression] ICE in build_over_call, at cp/call.c:9034 asolokha at gmx dot com
2020-10-27 15:48 ` [Bug c++/97597] " mpolacek at gcc dot gnu.org
2020-10-27 15:50 ` mpolacek at gcc dot gnu.org
2020-12-22 19:47 ` jason at gcc dot gnu.org
2020-12-23 22:11 ` cvs-commit at gcc dot gnu.org
2021-01-21 16:52 ` 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).