public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100659] New: [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702
@ 2021-05-18 17:41 gscfq@t-online.de
2021-05-19 7:56 ` [Bug c++/100659] " rguenth at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: gscfq@t-online.de @ 2021-05-18 17:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100659
Bug ID: 100659
Summary: [11/12 Regression] ICE in supplement_binding_1, at
cp/name-lookup.c:2702
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Changed between 20201108 and 20201115 :
$ cat z1.cc
template <typename> struct A
{
A::E::V;
enum { V };
};
$ g++-12-20210516 -c z1.cc
z1.cc:3:3: warning: access declarations are deprecated in favour of
using-declarations; suggestion: add the 'using' keyword [-Wdeprecated]
3 | A::E::V;
| ^
z1.cc:4:10: internal compiler error: Segmentation fault
4 | enum { V };
| ^
0xce3fcf crash_signal
../../gcc/toplev.c:327
0x75543c supplement_binding_1
../../gcc/cp/name-lookup.c:2702
0x759e06 supplement_binding
../../gcc/cp/name-lookup.c:2746
0x759e06 push_class_level_binding_1
../../gcc/cp/name-lookup.c:5549
0x759e06 push_class_level_binding(tree_node*, tree_node*)
../../gcc/cp/name-lookup.c:5567
0x759f7e pushdecl_class_level(tree_node*)
../../gcc/cp/name-lookup.c:5280
0x7eb4d7 finish_member_declaration(tree_node*)
../../gcc/cp/semantics.c:3468
0x6dda21 build_enumerator(tree_node*, tree_node*, tree_node*, tree_node*,
unsigned int)
../../gcc/cp/decl.c:16323
0x781d79 cp_parser_enumerator_definition
../../gcc/cp/parser.c:20284
0x781d79 cp_parser_enumerator_list
../../gcc/cp/parser.c:20213
0x781d79 cp_parser_enum_specifier
../../gcc/cp/parser.c:20143
0x781d79 cp_parser_type_specifier
../../gcc/cp/parser.c:18455
0x782246 cp_parser_decl_specifier_seq
../../gcc/cp/parser.c:15086
0x7a560a cp_parser_member_declaration
../../gcc/cp/parser.c:26003
0x77f7de cp_parser_member_specification_opt
../../gcc/cp/parser.c:25860
0x77f7de cp_parser_class_specifier_1
../../gcc/cp/parser.c:24932
0x781750 cp_parser_class_specifier
../../gcc/cp/parser.c:25248
0x781750 cp_parser_type_specifier
../../gcc/cp/parser.c:18485
0x782246 cp_parser_decl_specifier_seq
../../gcc/cp/parser.c:15086
0x7a43f5 cp_parser_single_declaration
../../gcc/cp/parser.c:30513
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/100659] [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702
2021-05-18 17:41 [Bug c++/100659] New: [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702 gscfq@t-online.de
@ 2021-05-19 7:56 ` rguenth at gcc dot gnu.org
2021-05-19 10:03 ` [Bug c++/100659] [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702 since r11-5003-gd50310408f54e380 marxin at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-19 7:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100659
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/100659] [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702 since r11-5003-gd50310408f54e380
2021-05-18 17:41 [Bug c++/100659] New: [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702 gscfq@t-online.de
2021-05-19 7:56 ` [Bug c++/100659] " rguenth at gcc dot gnu.org
@ 2021-05-19 10:03 ` marxin at gcc dot gnu.org
2021-05-19 20:38 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-05-19 10:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100659
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-05-19
Ever confirmed|0 |1
Summary|[11/12 Regression] ICE in |[11/12 Regression] ICE in
|supplement_binding_1, at |supplement_binding_1, at
|cp/name-lookup.c:2702 |cp/name-lookup.c:2702 since
| |r11-5003-gd50310408f54e380
Status|UNCONFIRMED |NEW
CC| |jason at gcc dot gnu.org,
| |marxin at gcc dot gnu.org
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r11-5003-gd50310408f54e380.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/100659] [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702 since r11-5003-gd50310408f54e380
2021-05-18 17:41 [Bug c++/100659] New: [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702 gscfq@t-online.de
2021-05-19 7:56 ` [Bug c++/100659] " rguenth at gcc dot gnu.org
2021-05-19 10:03 ` [Bug c++/100659] [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702 since r11-5003-gd50310408f54e380 marxin at gcc dot gnu.org
@ 2021-05-19 20:38 ` jason at gcc dot gnu.org
2021-05-20 3:11 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2021-05-19 20:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100659
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] 7+ messages in thread
* [Bug c++/100659] [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702 since r11-5003-gd50310408f54e380
2021-05-18 17:41 [Bug c++/100659] New: [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702 gscfq@t-online.de
` (2 preceding siblings ...)
2021-05-19 20:38 ` jason at gcc dot gnu.org
@ 2021-05-20 3:11 ` cvs-commit at gcc dot gnu.org
2021-05-20 3:12 ` cvs-commit at gcc dot gnu.org
2021-05-20 3:13 ` jason at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-20 3:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100659
--- Comment #2 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:fe9a6614a16b5ea7f12141c50b6b7de984390ed8
commit r12-932-gfe9a6614a16b5ea7f12141c50b6b7de984390ed8
Author: Jason Merrill <jason@redhat.com>
Date: Wed May 19 16:40:24 2021 -0400
c++: ICE with using and enum [PR100659]
Here the code for 'using enum' is confused by the combination of a
using-decl and an enum that are not from 'using enum'; this CONST_DECL is
from the normal unscoped enum scoping.
PR c++/100659
gcc/cp/ChangeLog:
* cp-tree.h (CONST_DECL_USING_P): Check for null TREE_TYPE.
gcc/testsuite/ChangeLog:
* g++.dg/parse/access13.C: New test.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/100659] [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702 since r11-5003-gd50310408f54e380
2021-05-18 17:41 [Bug c++/100659] New: [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702 gscfq@t-online.de
` (3 preceding siblings ...)
2021-05-20 3:11 ` cvs-commit at gcc dot gnu.org
@ 2021-05-20 3:12 ` cvs-commit at gcc dot gnu.org
2021-05-20 3:13 ` jason at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-20 3:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100659
--- Comment #3 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:8b7212ebb80e854c08274228627ce0a3061db6b0
commit r11-8443-g8b7212ebb80e854c08274228627ce0a3061db6b0
Author: Jason Merrill <jason@redhat.com>
Date: Wed May 19 16:40:24 2021 -0400
c++: ICE with using and enum [PR100659]
Here the code for 'using enum' is confused by the combination of a
using-decl and an enum that are not from 'using enum'; this CONST_DECL is
from the normal unscoped enum scoping.
PR c++/100659
gcc/cp/ChangeLog:
* cp-tree.h (CONST_DECL_USING_P): Check for null TREE_TYPE.
gcc/testsuite/ChangeLog:
* g++.dg/parse/access13.C: New test.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/100659] [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702 since r11-5003-gd50310408f54e380
2021-05-18 17:41 [Bug c++/100659] New: [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702 gscfq@t-online.de
` (4 preceding siblings ...)
2021-05-20 3:12 ` cvs-commit at gcc dot gnu.org
@ 2021-05-20 3:13 ` jason at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2021-05-20 3:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100659
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 for 11.2/12.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-05-20 3:13 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-18 17:41 [Bug c++/100659] New: [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702 gscfq@t-online.de
2021-05-19 7:56 ` [Bug c++/100659] " rguenth at gcc dot gnu.org
2021-05-19 10:03 ` [Bug c++/100659] [11/12 Regression] ICE in supplement_binding_1, at cp/name-lookup.c:2702 since r11-5003-gd50310408f54e380 marxin at gcc dot gnu.org
2021-05-19 20:38 ` jason at gcc dot gnu.org
2021-05-20 3:11 ` cvs-commit at gcc dot gnu.org
2021-05-20 3:12 ` cvs-commit at gcc dot gnu.org
2021-05-20 3:13 ` 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).