public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/97395] New: [11 Regression] ICE in update_binding, at cp/name-lookup.c:2504
@ 2020-10-13 2:43 asolokha at gmx dot com
2020-10-13 6:25 ` [Bug c++/97395] " rguenth at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: asolokha at gmx dot com @ 2020-10-13 2:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97395
Bug ID: 97395
Summary: [11 Regression] ICE in update_binding, at
cp/name-lookup.c:2504
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-alpha20201011 snapshot (g:4eaf96c56c1c97b11af42a4caaa12b37870308d7)
ICEs when compiling the following testcase, reduced from
test/CXX/dcl.decl/dcl.meaning/dcl.array/p3.cpp from the clang 10.0.1 test
suite:
namespace pr {
template<typename WW>
void
kp ()
{
extern WW hz;
}
void
n5 ()
{
kp<int[]> ();
kp<int[1]> ();
}
}
% g++-11.0.0 -c mtog1zuw.cpp
mtog1zuw.cpp: In instantiation of 'void pr::kp() [with WW = int [1]]':
mtog1zuw.cpp:13:17: required from here
mtog1zuw.cpp:6:15: internal compiler error: in update_binding, at
cp/name-lookup.c:2504
6 | extern WW hz;
| ^~
0x65ca87 update_binding
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201011/work/gcc-11-20201011/gcc/cp/name-lookup.c:2504
0x9ac9e7 do_pushdecl
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201011/work/gcc-11-20201011/gcc/cp/name-lookup.c:3135
0x9ae5f1 do_pushdecl
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201011/work/gcc-11-20201011/gcc/cp/name-lookup.c:3876
0x9ae5f1 do_pushdecl_with_scope
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201011/work/gcc-11-20201011/gcc/cp/name-lookup.c:3876
0x9ad9e3 push_local_extern_decl_alias
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201011/work/gcc-11-20201011/gcc/cp/name-lookup.c:2978
0x9ad9e3 do_pushdecl
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201011/work/gcc-11-20201011/gcc/cp/name-lookup.c:3167
0x9ae562 do_pushdecl
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201011/work/gcc-11-20201011/gcc/cp/name-lookup.c:3188
0x9ae562 pushdecl(tree_node*, bool)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201011/work/gcc-11-20201011/gcc/cp/name-lookup.c:3188
0xa2f8e9 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201011/work/gcc-11-20201011/gcc/cp/pt.c:18118
0xa2c4c0 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201011/work/gcc-11-20201011/gcc/cp/pt.c:18309
0xa325c6 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201011/work/gcc-11-20201011/gcc/cp/pt.c:17977
0xa325c6 instantiate_body
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201011/work/gcc-11-20201011/gcc/cp/pt.c:25629
0xa33770 instantiate_decl(tree_node*, bool, bool)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201011/work/gcc-11-20201011/gcc/cp/pt.c:25917
0xa57beb instantiate_pending_templates(int)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201011/work/gcc-11-20201011/gcc/cp/pt.c:25996
0x958a5b c_parse_final_cleanups()
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201011/work/gcc-11-20201011/gcc/cp/decl2.c:4920
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/97395] [11 Regression] ICE in update_binding, at cp/name-lookup.c:2504
2020-10-13 2:43 [Bug c++/97395] New: [11 Regression] ICE in update_binding, at cp/name-lookup.c:2504 asolokha at gmx dot com
@ 2020-10-13 6:25 ` rguenth at gcc dot gnu.org
2020-10-13 7:48 ` [Bug c++/97395] [11 Regression] ICE in update_binding, at cp/name-lookup.c:2504 since r11-3699-g4e62aca0e0520e4e marxin at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-10-13 6:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97395
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/97395] [11 Regression] ICE in update_binding, at cp/name-lookup.c:2504 since r11-3699-g4e62aca0e0520e4e
2020-10-13 2:43 [Bug c++/97395] New: [11 Regression] ICE in update_binding, at cp/name-lookup.c:2504 asolokha at gmx dot com
2020-10-13 6:25 ` [Bug c++/97395] " rguenth at gcc dot gnu.org
@ 2020-10-13 7:48 ` marxin at gcc dot gnu.org
2020-10-13 11:58 ` nathan at gcc dot gnu.org
2020-10-14 12:10 ` nathan at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-10-13 7:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97395
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
Last reconfirmed| |2020-10-13
Known to work| |10.2.0
Known to fail| |11.0
CC| |marxin at gcc dot gnu.org,
| |nathan at gcc dot gnu.org
Summary|[11 Regression] ICE in |[11 Regression] ICE in
|update_binding, at |update_binding, at
|cp/name-lookup.c:2504 |cp/name-lookup.c:2504 since
| |r11-3699-g4e62aca0e0520e4e
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r11-3699-g4e62aca0e0520e4e.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/97395] [11 Regression] ICE in update_binding, at cp/name-lookup.c:2504 since r11-3699-g4e62aca0e0520e4e
2020-10-13 2:43 [Bug c++/97395] New: [11 Regression] ICE in update_binding, at cp/name-lookup.c:2504 asolokha at gmx dot com
2020-10-13 6:25 ` [Bug c++/97395] " rguenth at gcc dot gnu.org
2020-10-13 7:48 ` [Bug c++/97395] [11 Regression] ICE in update_binding, at cp/name-lookup.c:2504 since r11-3699-g4e62aca0e0520e4e marxin at gcc dot gnu.org
@ 2020-10-13 11:58 ` nathan at gcc dot gnu.org
2020-10-14 12:10 ` nathan at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-10-13 11:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97395
Nathan Sidwell <nathan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |nathan at gcc dot gnu.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/97395] [11 Regression] ICE in update_binding, at cp/name-lookup.c:2504 since r11-3699-g4e62aca0e0520e4e
2020-10-13 2:43 [Bug c++/97395] New: [11 Regression] ICE in update_binding, at cp/name-lookup.c:2504 asolokha at gmx dot com
` (2 preceding siblings ...)
2020-10-13 11:58 ` nathan at gcc dot gnu.org
@ 2020-10-14 12:10 ` nathan at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-10-14 12:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97395
Nathan Sidwell <nathan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Fixed 9068711f210 2020-10-14 | c++: Instantiation with local extern [PR97395]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-10-14 12:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-13 2:43 [Bug c++/97395] New: [11 Regression] ICE in update_binding, at cp/name-lookup.c:2504 asolokha at gmx dot com
2020-10-13 6:25 ` [Bug c++/97395] " rguenth at gcc dot gnu.org
2020-10-13 7:48 ` [Bug c++/97395] [11 Regression] ICE in update_binding, at cp/name-lookup.c:2504 since r11-3699-g4e62aca0e0520e4e marxin at gcc dot gnu.org
2020-10-13 11:58 ` nathan at gcc dot gnu.org
2020-10-14 12:10 ` nathan 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).