public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96638] New: [10/11 Regression] ICE in chainon, at tree.c:3169
@ 2020-08-17  2:27 haoxintu at gmail dot com
  2020-08-18 13:46 ` [Bug c++/96638] [8/9/10/11 " mpolacek at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: haoxintu at gmail dot com @ 2020-08-17  2:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96638
           Summary: [10/11 Regression] ICE in chainon, at tree.c:3169
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: error-recovery, ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: haoxintu at gmail dot com
  Target Milestone: ---

Input:
//small.cc
void foo(int[] alignas[1] alignas()){}

Command:
g++ small.cc

Output:
small.cc:1:23: error: expected ‘(’ before ‘[’ token
    1 | void foo(int[] alignas[1] alignas()){}
      |                       ^
      |                       (
small.cc:1:35: error: expected primary-expression before ‘)’ token
    1 | void foo(int[] alignas[1] alignas()){}
      |                                   ^
small.cc:1:38: internal compiler error: in chainon, at tree.c:3169
    1 | void foo(int[] alignas[1] alignas()){}
      |                                      ^
0x7ea11e chainon(tree_node*, tree_node*)
        ../../gcc/tree.c:3169
0x7ea11e chainon(tree_node*, tree_node*)
        ../../gcc/tree.c:3152
0x93ad08 grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*,
decl_context, int, tree_node**)
        ../../gcc/cp/decl.c:12060
0x9f275e cp_parser_parameter_declaration_list
        ../../gcc/cp/parser.c:22705
0x9f2b21 cp_parser_parameter_declaration_clause
        ../../gcc/cp/parser.c:22622
0x9df4f1 cp_parser_direct_declarator
        ../../gcc/cp/parser.c:21299
0x9df4f1 cp_parser_declarator
        ../../gcc/cp/parser.c:21163
0x9f4756 cp_parser_init_declarator
        ../../gcc/cp/parser.c:20663
0x9d4f7c cp_parser_simple_declaration
        ../../gcc/cp/parser.c:13811
0xa002fe cp_parser_declaration
        ../../gcc/cp/parser.c:13510
0xa009db cp_parser_translation_unit
        ../../gcc/cp/parser.c:4793
0xa009db c_parse_file()
        ../../gcc/cp/parser.c:44095
0xb1b9fd c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1188
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

This only occurs in GCC-trunk, GCC-10 performs well in error-recovery.

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

* [Bug c++/96638] [8/9/10/11 Regression] ICE in chainon, at tree.c:3169
  2020-08-17  2:27 [Bug c++/96638] New: [10/11 Regression] ICE in chainon, at tree.c:3169 haoxintu at gmail dot com
@ 2020-08-18 13:46 ` mpolacek at gcc dot gnu.org
  2021-05-14  9:53 ` [Bug c++/96638] [9/10/11/12 " jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-08-18 13:46 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[10/11 Regression] ICE in   |[8/9/10/11 Regression] ICE
                   |chainon, at tree.c:3169     |in chainon, at tree.c:3169
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Target Milestone|---                         |8.5
           Priority|P3                          |P4
                 CC|                            |mpolacek at gcc dot gnu.org
   Last reconfirmed|                            |2020-08-18

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Even GCC 6 ICEs.

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

* [Bug c++/96638] [9/10/11/12 Regression] ICE in chainon, at tree.c:3169
  2020-08-17  2:27 [Bug c++/96638] New: [10/11 Regression] ICE in chainon, at tree.c:3169 haoxintu at gmail dot com
  2020-08-18 13:46 ` [Bug c++/96638] [8/9/10/11 " mpolacek at gcc dot gnu.org
@ 2021-05-14  9:53 ` jakub at gcc dot gnu.org
  2021-06-01  8:18 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-14  9:53 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|8.5                         |9.4

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 8 branch is being closed.

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

* [Bug c++/96638] [9/10/11/12 Regression] ICE in chainon, at tree.c:3169
  2020-08-17  2:27 [Bug c++/96638] New: [10/11 Regression] ICE in chainon, at tree.c:3169 haoxintu at gmail dot com
  2020-08-18 13:46 ` [Bug c++/96638] [8/9/10/11 " mpolacek at gcc dot gnu.org
  2021-05-14  9:53 ` [Bug c++/96638] [9/10/11/12 " jakub at gcc dot gnu.org
@ 2021-06-01  8:18 ` rguenth at gcc dot gnu.org
  2021-09-20 22:04 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01  8:18 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.

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

* [Bug c++/96638] [9/10/11/12 Regression] ICE in chainon, at tree.c:3169
  2020-08-17  2:27 [Bug c++/96638] New: [10/11 Regression] ICE in chainon, at tree.c:3169 haoxintu at gmail dot com
                   ` (2 preceding siblings ...)
  2021-06-01  8:18 ` rguenth at gcc dot gnu.org
@ 2021-09-20 22:04 ` pinskia at gcc dot gnu.org
  2022-05-27  9:43 ` [Bug c++/96638] [10/11/12/13 " rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-20 22:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Marek Polacek from comment #1)
> Even GCC 6 ICEs.

I suspect GCC 5 did not ICE, see PR 96637 .

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

* [Bug c++/96638] [10/11/12/13 Regression] ICE in chainon, at tree.c:3169
  2020-08-17  2:27 [Bug c++/96638] New: [10/11 Regression] ICE in chainon, at tree.c:3169 haoxintu at gmail dot com
                   ` (3 preceding siblings ...)
  2021-09-20 22:04 ` pinskia at gcc dot gnu.org
@ 2022-05-27  9:43 ` rguenth at gcc dot gnu.org
  2022-06-28 10:41 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  9:43 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #5 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++/96638] [10/11/12/13 Regression] ICE in chainon, at tree.c:3169
  2020-08-17  2:27 [Bug c++/96638] New: [10/11 Regression] ICE in chainon, at tree.c:3169 haoxintu at gmail dot com
                   ` (4 preceding siblings ...)
  2022-05-27  9:43 ` [Bug c++/96638] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:41 ` jakub at gcc dot gnu.org
  2023-07-07  6:05 ` [Bug c++/96638] [10/11/12/13/14 " pinskia at gcc dot gnu.org
  2023-07-07  6:07 ` pinskia at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #6 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++/96638] [10/11/12/13/14 Regression] ICE in chainon, at tree.c:3169
  2020-08-17  2:27 [Bug c++/96638] New: [10/11 Regression] ICE in chainon, at tree.c:3169 haoxintu at gmail dot com
                   ` (5 preceding siblings ...)
  2022-06-28 10:41 ` jakub at gcc dot gnu.org
@ 2023-07-07  6:05 ` pinskia at gcc dot gnu.org
  2023-07-07  6:07 ` pinskia at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-07  6:05 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needs-bisection

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I can't reproduce this on the trunk, I wonder when this was fixed.

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

* [Bug c++/96638] [10/11/12/13/14 Regression] ICE in chainon, at tree.c:3169
  2020-08-17  2:27 [Bug c++/96638] New: [10/11 Regression] ICE in chainon, at tree.c:3169 haoxintu at gmail dot com
                   ` (6 preceding siblings ...)
  2023-07-07  6:05 ` [Bug c++/96638] [10/11/12/13/14 " pinskia at gcc dot gnu.org
@ 2023-07-07  6:07 ` pinskia at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-07  6:07 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 96637 in the end.

*** This bug has been marked as a duplicate of bug 96637 ***

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

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

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-17  2:27 [Bug c++/96638] New: [10/11 Regression] ICE in chainon, at tree.c:3169 haoxintu at gmail dot com
2020-08-18 13:46 ` [Bug c++/96638] [8/9/10/11 " mpolacek at gcc dot gnu.org
2021-05-14  9:53 ` [Bug c++/96638] [9/10/11/12 " jakub at gcc dot gnu.org
2021-06-01  8:18 ` rguenth at gcc dot gnu.org
2021-09-20 22:04 ` pinskia at gcc dot gnu.org
2022-05-27  9:43 ` [Bug c++/96638] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:41 ` jakub at gcc dot gnu.org
2023-07-07  6:05 ` [Bug c++/96638] [10/11/12/13/14 " pinskia at gcc dot gnu.org
2023-07-07  6:07 ` pinskia 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).