public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98297] New: [9/10/11 Regression] ICE in cp_parser_elaborated_type_specifier, at cp/parser.c:19653
@ 2020-12-15 17:24 gscfq@t-online.de
2020-12-15 18:31 ` [Bug c++/98297] [8/9/10/11 " mpolacek at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: gscfq@t-online.de @ 2020-12-15 17:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98297
Bug ID: 98297
Summary: [9/10/11 Regression] ICE in
cp_parser_elaborated_type_specifier, at
cp/parser.c:19653
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Affects versions down to r8 :
$ cat z1.cc
template <template <class> class a> struct [[b]] a <int>;
$ g++-11-20201213 -c z1.cc
z1.cc:1:50: internal compiler error: Segmentation fault
1 | template <template <class> class a> struct [[b]] a <int>;
| ^~~~~~~
0xc8f5ff crash_signal
../../gcc/toplev.c:327
0x7507a5 cp_parser_elaborated_type_specifier
../../gcc/cp/parser.c:19653
0x739283 cp_parser_type_specifier
../../gcc/cp/parser.c:18393
0x73a0b6 cp_parser_decl_specifier_seq
../../gcc/cp/parser.c:14990
0x75bd05 cp_parser_single_declaration
../../gcc/cp/parser.c:30321
0x75c095 cp_parser_template_declaration_after_parameters
../../gcc/cp/parser.c:29984
0x75c84b cp_parser_explicit_template_declaration
../../gcc/cp/parser.c:30250
0x75c84b cp_parser_template_declaration_after_export
../../gcc/cp/parser.c:30269
0x75ecf9 cp_parser_declaration
../../gcc/cp/parser.c:13996
0x75e183 cp_parser_translation_unit
../../gcc/cp/parser.c:4926
0x75e183 c_parse_file()
../../gcc/cp/parser.c:45106
0x82acf2 c_common_parse_file()
../../gcc/c-family/c-opts.c:1211
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/98297] [8/9/10/11 Regression] ICE in cp_parser_elaborated_type_specifier, at cp/parser.c:19653
2020-12-15 17:24 [Bug c++/98297] New: [9/10/11 Regression] ICE in cp_parser_elaborated_type_specifier, at cp/parser.c:19653 gscfq@t-online.de
@ 2020-12-15 18:31 ` mpolacek at gcc dot gnu.org
2020-12-16 8:23 ` marxin at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-12-15 18:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98297
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
CC| |mpolacek at gcc dot gnu.org
Last reconfirmed| |2020-12-15
Summary|[9/10/11 Regression] ICE in |[8/9/10/11 Regression] ICE
|cp_parser_elaborated_type_s |in
|pecifier, at |cp_parser_elaborated_type_s
|cp/parser.c:19653 |pecifier, at
| |cp/parser.c:19653
Target Milestone|--- |8.5
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/98297] [8/9/10/11 Regression] ICE in cp_parser_elaborated_type_specifier, at cp/parser.c:19653
2020-12-15 17:24 [Bug c++/98297] New: [9/10/11 Regression] ICE in cp_parser_elaborated_type_specifier, at cp/parser.c:19653 gscfq@t-online.de
2020-12-15 18:31 ` [Bug c++/98297] [8/9/10/11 " mpolacek at gcc dot gnu.org
@ 2020-12-16 8:23 ` marxin at gcc dot gnu.org
2020-12-16 12:54 ` nathan at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-12-16 8:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98297
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marxin at gcc dot gnu.org,
| |nathan at gcc dot gnu.org
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Likely started with r8-2567-g776ff3efa9de7fce.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/98297] [8/9/10/11 Regression] ICE in cp_parser_elaborated_type_specifier, at cp/parser.c:19653
2020-12-15 17:24 [Bug c++/98297] New: [9/10/11 Regression] ICE in cp_parser_elaborated_type_specifier, at cp/parser.c:19653 gscfq@t-online.de
2020-12-15 18:31 ` [Bug c++/98297] [8/9/10/11 " mpolacek at gcc dot gnu.org
2020-12-16 8:23 ` marxin at gcc dot gnu.org
@ 2020-12-16 12:54 ` nathan at gcc dot gnu.org
2020-12-16 19:59 ` nathan at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-12-16 12:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98297
Nathan Sidwell <nathan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |nathan at gcc dot gnu.org
Status|NEW |ASSIGNED
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/98297] [8/9/10/11 Regression] ICE in cp_parser_elaborated_type_specifier, at cp/parser.c:19653
2020-12-15 17:24 [Bug c++/98297] New: [9/10/11 Regression] ICE in cp_parser_elaborated_type_specifier, at cp/parser.c:19653 gscfq@t-online.de
` (2 preceding siblings ...)
2020-12-16 12:54 ` nathan at gcc dot gnu.org
@ 2020-12-16 19:59 ` nathan at gcc dot gnu.org
2020-12-16 21:41 ` nathan at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-12-16 19:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98297
--- Comment #3 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Fixed trunk, 8d8bb85b486 2020-12-16 | c++: Fix template parm ICE [PR 98297]
backports to 10, 9, & 8 in progress
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/98297] [8/9/10/11 Regression] ICE in cp_parser_elaborated_type_specifier, at cp/parser.c:19653
2020-12-15 17:24 [Bug c++/98297] New: [9/10/11 Regression] ICE in cp_parser_elaborated_type_specifier, at cp/parser.c:19653 gscfq@t-online.de
` (3 preceding siblings ...)
2020-12-16 19:59 ` nathan at gcc dot gnu.org
@ 2020-12-16 21:41 ` nathan at gcc dot gnu.org
2021-04-23 9:31 ` jakub at gcc dot gnu.org
2021-04-23 11:43 ` jakub at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-12-16 21:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98297
Nathan Sidwell <nathan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
8, 9 & 10 fixed
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/98297] [8/9/10/11 Regression] ICE in cp_parser_elaborated_type_specifier, at cp/parser.c:19653
2020-12-15 17:24 [Bug c++/98297] New: [9/10/11 Regression] ICE in cp_parser_elaborated_type_specifier, at cp/parser.c:19653 gscfq@t-online.de
` (4 preceding siblings ...)
2020-12-16 21:41 ` nathan at gcc dot gnu.org
@ 2021-04-23 9:31 ` jakub at gcc dot gnu.org
2021-04-23 11:43 ` jakub at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-04-23 9:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98297
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Note, the testcase FAILs on the 8 branch, the emitted error is different.
$ gcc-9/obj28/gcc/cc1plus -quiet -std=c++11 /tmp/pr98297.C -o /tmp/pr98297.s
/tmp/pr98297.C:5:1: warning: ‘b’ attribute directive ignored [-Wattributes]
5 | a <int>; // { dg-error "does not declare anything" }
| ^~~~~~~
/tmp/pr98297.C:5:1: error: declaration does not declare anything [-fpermissive]
$ gcc-8/obj32/gcc/cc1plus -quiet -std=c++11 /tmp/pr98297.C -o /tmp/pr98297.s
/tmp/pr98297.C:5:1: warning: ‘b’ attribute directive ignored [-Wattributes]
a <int>; // { dg-error "does not declare anything" }
^~~~~~~
/tmp/pr98297.C:5:1: error: name of class shadows template template parameter
‘a’
$ gcc-8/obj30/gcc/cc1plus -quiet -std=c++11 /tmp/pr98297.C -o /tmp/pr98297.s
/tmp/pr98297.C:5:1: internal compiler error: Segmentation fault
a <int>; // { dg-error "does not declare anything" }
^~~~~~~
gcc-8/obj30 is 5 months old snapshot which expectedly ICEs, but the middle
error is different from what the test expects.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/98297] [8/9/10/11 Regression] ICE in cp_parser_elaborated_type_specifier, at cp/parser.c:19653
2020-12-15 17:24 [Bug c++/98297] New: [9/10/11 Regression] ICE in cp_parser_elaborated_type_specifier, at cp/parser.c:19653 gscfq@t-online.de
` (5 preceding siblings ...)
2021-04-23 9:31 ` jakub at gcc dot gnu.org
@ 2021-04-23 11:43 ` jakub at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-04-23 11:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98297
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Ah, tracked already in PR98358.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-04-23 11:43 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-15 17:24 [Bug c++/98297] New: [9/10/11 Regression] ICE in cp_parser_elaborated_type_specifier, at cp/parser.c:19653 gscfq@t-online.de
2020-12-15 18:31 ` [Bug c++/98297] [8/9/10/11 " mpolacek at gcc dot gnu.org
2020-12-16 8:23 ` marxin at gcc dot gnu.org
2020-12-16 12:54 ` nathan at gcc dot gnu.org
2020-12-16 19:59 ` nathan at gcc dot gnu.org
2020-12-16 21:41 ` nathan at gcc dot gnu.org
2021-04-23 9:31 ` jakub at gcc dot gnu.org
2021-04-23 11:43 ` jakub 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).