public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/103273] New: [12 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010
@ 2021-11-16 12:40 steinar+gcc at gunderson dot no
  2021-11-16 12:44 ` [Bug c++/103273] " steinar+gcc at gunderson dot no
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: steinar+gcc at gunderson dot no @ 2021-11-16 12:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103273

            Bug ID: 103273
           Summary: [12 Regression] internal compiler error: in
                    cp_parser_type_id_1, at cp/parser.c:24010
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: steinar+gcc at gunderson dot no
  Target Milestone: ---

Found while minimizing another regression:

gcc version 12.0.0 20210918 (experimental) [master r12-3644-g7afcb534239]
(Debian 20210918-1) 

bigscreen:~/creduce> cat fts0opt.i
template <class a> struct b;
b < b struct {

bigscreen:~/creduce> /usr/lib/gcc-snapshot/bin/g++ -c fts0opt.i
fts0opt.i:2:14: error: types may not be defined in template arguments
    2 | b < b struct {
      |              ^
fts0opt.i:2:15: error: expected '}' at end of input
    2 | b < b struct {
      |              ~^
fts0opt.i:2:15: internal compiler error: in cp_parser_type_id_1, at
cp/parser.c:24010
0x6fa6a2 cp_parser_type_id_1
       
/build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:24010
0xf578c3 cp_parser_template_type_arg
       
/build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:24105
0xf579ef cp_parser_template_argument
       
/build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:18660
0xf579ef cp_parser_template_argument_list
       
/build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:18571
0xf579ef cp_parser_enclosed_template_argument_list
       
/build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:31853
0xf58e76 cp_parser_template_id
       
/build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:18108
0xf5969b cp_parser_class_name
       
/build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:25535
0xf5035a cp_parser_qualifying_entity
       
/build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:7048
0xf5035a cp_parser_nested_name_specifier_opt
       
/build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:6730
0xf45f4d cp_parser_constructor_declarator_p
       
/build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:30712
0xf45f4d cp_parser_decl_specifier_seq
       
/build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:15743
0xf469b4 cp_parser_simple_declaration
       
/build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:15006
0xf76f25 cp_parser_declaration
       
/build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:14819
0xf778fe cp_parser_toplevel_declaration
       
/build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:14840
0xf778fe cp_parser_translation_unit
       
/build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:4978
0xf778fe c_parse_file()
       
/build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/cp/parser.c:47653
0x10a4a4d c_common_parse_file()
       
/build/gcc-snapshot-FKpLPc/gcc-snapshot-20210918/src/gcc/c-family/c-opts.c:1236
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-snapshot/README.Bugs> for instructions.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/103273] [12 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010
  2021-11-16 12:40 [Bug c++/103273] New: [12 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010 steinar+gcc at gunderson dot no
@ 2021-11-16 12:44 ` steinar+gcc at gunderson dot no
  2021-11-16 12:46 ` [Bug c++/103273] [11/12 " rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: steinar+gcc at gunderson dot no @ 2021-11-16 12:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103273

Steinar H. Gunderson <steinar+gcc at gunderson dot no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Steinar H. Gunderson <steinar+gcc at gunderson dot no> ---
Nevermind, fixed in a newer version!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/103273] [11/12 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010
  2021-11-16 12:40 [Bug c++/103273] New: [12 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010 steinar+gcc at gunderson dot no
  2021-11-16 12:44 ` [Bug c++/103273] " steinar+gcc at gunderson dot no
@ 2021-11-16 12:46 ` rguenth at gcc dot gnu.org
  2021-11-16 12:47 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-11-16 12:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103273

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.3
             Status|RESOLVED                    |UNCONFIRMED
           Priority|P3                          |P4
            Summary|[12 Regression] internal    |[11/12 Regression] internal
                   |compiler error: in          |compiler error: in
                   |cp_parser_type_id_1, at     |cp_parser_type_id_1, at
                   |cp/parser.c:24010           |cp/parser.c:24010
           Keywords|                            |error-recovery,
                   |                            |ice-on-invalid-code
         Resolution|INVALID                     |---
      Known to work|                            |10.3.1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I can still reproduce on trunk and the GCC 11 branch.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/103273] [11/12 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010
  2021-11-16 12:40 [Bug c++/103273] New: [12 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010 steinar+gcc at gunderson dot no
  2021-11-16 12:44 ` [Bug c++/103273] " steinar+gcc at gunderson dot no
  2021-11-16 12:46 ` [Bug c++/103273] [11/12 " rguenth at gcc dot gnu.org
@ 2021-11-16 12:47 ` rguenth at gcc dot gnu.org
  2021-11-16 12:55 ` [Bug c++/103273] [9/10/11/12 " jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-11-16 12:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103273

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-11-16
             Status|UNCONFIRMED                 |NEW

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/103273] [9/10/11/12 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010
  2021-11-16 12:40 [Bug c++/103273] New: [12 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010 steinar+gcc at gunderson dot no
                   ` (2 preceding siblings ...)
  2021-11-16 12:47 ` rguenth at gcc dot gnu.org
@ 2021-11-16 12:55 ` jakub at gcc dot gnu.org
  2021-11-17  5:55 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-11-16 12:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103273

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[11/12 Regression] internal |[9/10/11/12 Regression]
                   |compiler error: in          |internal compiler error: in
                   |cp_parser_type_id_1, at     |cp_parser_type_id_1, at
                   |cp/parser.c:24010           |cp/parser.c:24010
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org
   Target Milestone|11.3                        |9.5

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r7-3500-g76b294d48d6c375b76f1695ea56c960d5473439b when -std=c++1z
is used, otherwise started with
r11-1677-g0801f419440c14f6772b28f763ad7d40f7f7a580 when -std=gnu++17 became the
default.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/103273] [9/10/11/12 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010
  2021-11-16 12:40 [Bug c++/103273] New: [12 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010 steinar+gcc at gunderson dot no
                   ` (3 preceding siblings ...)
  2021-11-16 12:55 ` [Bug c++/103273] [9/10/11/12 " jakub at gcc dot gnu.org
@ 2021-11-17  5:55 ` pinskia at gcc dot gnu.org
  2022-05-27  9:46 ` [Bug c++/103273] [10/11/12/13 " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-17  5:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103273

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
      Known to work|10.3.1                      |

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/103273] [10/11/12/13 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010
  2021-11-16 12:40 [Bug c++/103273] New: [12 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010 steinar+gcc at gunderson dot no
                   ` (4 preceding siblings ...)
  2021-11-17  5:55 ` pinskia at gcc dot gnu.org
@ 2022-05-27  9:46 ` rguenth at gcc dot gnu.org
  2022-06-28 10:46 ` jakub at gcc dot gnu.org
  2023-07-07 10:41 ` [Bug c++/103273] [11/12/13/14 " rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  9:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103273

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.5                         |10.4

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/103273] [10/11/12/13 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010
  2021-11-16 12:40 [Bug c++/103273] New: [12 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010 steinar+gcc at gunderson dot no
                   ` (5 preceding siblings ...)
  2022-05-27  9:46 ` [Bug c++/103273] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:46 ` jakub at gcc dot gnu.org
  2023-07-07 10:41 ` [Bug c++/103273] [11/12/13/14 " rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103273

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.4                        |10.5

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/103273] [11/12/13/14 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010
  2021-11-16 12:40 [Bug c++/103273] New: [12 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010 steinar+gcc at gunderson dot no
                   ` (6 preceding siblings ...)
  2022-06-28 10:46 ` jakub at gcc dot gnu.org
@ 2023-07-07 10:41 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103273

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |11.5

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-07-07 10:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16 12:40 [Bug c++/103273] New: [12 Regression] internal compiler error: in cp_parser_type_id_1, at cp/parser.c:24010 steinar+gcc at gunderson dot no
2021-11-16 12:44 ` [Bug c++/103273] " steinar+gcc at gunderson dot no
2021-11-16 12:46 ` [Bug c++/103273] [11/12 " rguenth at gcc dot gnu.org
2021-11-16 12:47 ` rguenth at gcc dot gnu.org
2021-11-16 12:55 ` [Bug c++/103273] [9/10/11/12 " jakub at gcc dot gnu.org
2021-11-17  5:55 ` pinskia at gcc dot gnu.org
2022-05-27  9:46 ` [Bug c++/103273] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:46 ` jakub at gcc dot gnu.org
2023-07-07 10:41 ` [Bug c++/103273] [11/12/13/14 " rguenth 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).