public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96438] New: [10/11 Regression] ICE in do_pushtag, at cp/name-lookup.c:6861
@ 2020-08-03 16:49 haoxintu at gmail dot com
  2020-08-03 19:42 ` [Bug c++/96438] [9/10/11 " mpolacek at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: haoxintu at gmail dot com @ 2020-08-03 16:49 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96438
           Summary: [10/11 Regression] ICE in do_pushtag, at
                    cp/name-lookup.c:6861
           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: ---

Hi, all.

This code, reduced by C-Vise, makes GCC-trunk ICE, while GCC-10 and downwards
versions behave well in error-recovery.

Input:
//small.cc
class A {
    template <class>
        void foo (int (operator struct { union :});
}

Command:
g++ small.cc


Output:
small.cc:3:40: error: types may not be defined in a conversion-type-id
    3 |         void foo (int (operator struct { union :});
      |                                        ^
small.cc:3:42: internal compiler error: in do_pushtag, at cp/name-lookup.c:6861
    3 |         void foo (int (operator struct { union :});
      |                                          ^~~~~
0x641ae8 do_pushtag
        ../../gcc/cp/name-lookup.c:6861
0x641ae8 pushtag(tree_node*, tree_node*, tag_scope)
        ../../gcc/cp/name-lookup.c:6988
0x9030d0 xref_tag(tag_types, tree_node*, tag_scope, bool)
        ../../gcc/cp/decl.c:15085
0x9aa0af cp_parser_class_head
        ../../gcc/cp/parser.c:24698
0x9aa0af cp_parser_class_specifier_1
        ../../gcc/cp/parser.c:23920
0x9aa593 cp_parser_class_specifier
        ../../gcc/cp/parser.c:24294
0x9aa593 cp_parser_type_specifier
        ../../gcc/cp/parser.c:17797
0x9ab50e cp_parser_decl_specifier_seq
        ../../gcc/cp/parser.c:14436
0x9d5570 cp_parser_member_declaration
        ../../gcc/cp/parser.c:25035
0x9a82f8 cp_parser_member_specification_opt
        ../../gcc/cp/parser.c:24890
0x9a82f8 cp_parser_class_specifier_1
        ../../gcc/cp/parser.c:23987
0x9aa593 cp_parser_class_specifier
        ../../gcc/cp/parser.c:24294
0x9aa593 cp_parser_type_specifier
        ../../gcc/cp/parser.c:17797
0x9c0273 cp_parser_type_specifier_seq
        ../../gcc/cp/parser.c:22479
0x9bf53a cp_parser_conversion_type_id
        ../../gcc/cp/parser.c:15154
0x9bf53a cp_parser_conversion_function_id
        ../../gcc/cp/parser.c:15115
0x9bf53a cp_parser_unqualified_id
        ../../gcc/cp/parser.c:6335
0x9b6d07 cp_parser_declarator_id
        ../../gcc/cp/parser.c:22267
0x9b6d07 cp_parser_direct_declarator
        ../../gcc/cp/parser.c:21515
0x9b6d07 cp_parser_declarator
        ../../gcc/cp/parser.c:21149
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.

My gcc version is
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/home/haoxin/corpus-compilers/gcc-trunk/gcc-master/build/libexec/gcc/x86_64-pc-linux-gnu/11.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure
--prefix=/home/haoxin/corpus-compilers/gcc-trunk/gcc-master/build/
--enable-languages=c,c++ CC=gcc CXX=g++
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.0.0 20200801 (experimental) (GCC) 


Thanks,
Haoxin

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

* [Bug c++/96438] [9/10/11 Regression] ICE in do_pushtag, at cp/name-lookup.c:6861
  2020-08-03 16:49 [Bug c++/96438] New: [10/11 Regression] ICE in do_pushtag, at cp/name-lookup.c:6861 haoxintu at gmail dot com
@ 2020-08-03 19:42 ` mpolacek at gcc dot gnu.org
  2021-05-14  9:53 ` [Bug c++/96438] [9/10/11/12 " jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-08-03 19:42 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P5
            Summary|[10/11 Regression] ICE in   |[9/10/11 Regression] ICE in
                   |do_pushtag, at              |do_pushtag, at
                   |cp/name-lookup.c:6861       |cp/name-lookup.c:6861
   Target Milestone|---                         |8.5
   Last reconfirmed|                            |2020-08-03
     Ever confirmed|0                           |1
                 CC|                            |mpolacek at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW

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

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

* [Bug c++/96438] [9/10/11/12 Regression] ICE in do_pushtag, at cp/name-lookup.c:6861
  2020-08-03 16:49 [Bug c++/96438] New: [10/11 Regression] ICE in do_pushtag, at cp/name-lookup.c:6861 haoxintu at gmail dot com
  2020-08-03 19:42 ` [Bug c++/96438] [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
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ 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=96438

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] 7+ messages in thread

* [Bug c++/96438] [9/10/11/12 Regression] ICE in do_pushtag, at cp/name-lookup.c:6861
  2020-08-03 16:49 [Bug c++/96438] New: [10/11 Regression] ICE in do_pushtag, at cp/name-lookup.c:6861 haoxintu at gmail dot com
  2020-08-03 19:42 ` [Bug c++/96438] [9/10/11 " mpolacek at gcc dot gnu.org
  2021-05-14  9:53 ` [Bug c++/96438] [9/10/11/12 " jakub at gcc dot gnu.org
@ 2021-06-01  8:18 ` rguenth at gcc dot gnu.org
  2022-05-27  9:43 ` [Bug c++/96438] [10/11/12/13 " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ 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=96438

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] 7+ messages in thread

* [Bug c++/96438] [10/11/12/13 Regression] ICE in do_pushtag, at cp/name-lookup.c:6861
  2020-08-03 16:49 [Bug c++/96438] New: [10/11 Regression] ICE in do_pushtag, at cp/name-lookup.c:6861 haoxintu at gmail dot com
                   ` (2 preceding siblings ...)
  2021-06-01  8:18 ` rguenth 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
  2023-07-07 10:37 ` [Bug c++/96438] [11/12/13/14 " rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ 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=96438

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] 7+ messages in thread

* [Bug c++/96438] [10/11/12/13 Regression] ICE in do_pushtag, at cp/name-lookup.c:6861
  2020-08-03 16:49 [Bug c++/96438] New: [10/11 Regression] ICE in do_pushtag, at cp/name-lookup.c:6861 haoxintu at gmail dot com
                   ` (3 preceding siblings ...)
  2022-05-27  9:43 ` [Bug c++/96438] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:41 ` jakub at gcc dot gnu.org
  2023-07-07 10:37 ` [Bug c++/96438] [11/12/13/14 " rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ 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=96438

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] 7+ messages in thread

* [Bug c++/96438] [11/12/13/14 Regression] ICE in do_pushtag, at cp/name-lookup.c:6861
  2020-08-03 16:49 [Bug c++/96438] New: [10/11 Regression] ICE in do_pushtag, at cp/name-lookup.c:6861 haoxintu at gmail dot com
                   ` (4 preceding siblings ...)
  2022-06-28 10:41 ` jakub at gcc dot gnu.org
@ 2023-07-07 10:37 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:37 UTC (permalink / raw)
  To: gcc-bugs

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

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] 7+ messages in thread

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-03 16:49 [Bug c++/96438] New: [10/11 Regression] ICE in do_pushtag, at cp/name-lookup.c:6861 haoxintu at gmail dot com
2020-08-03 19:42 ` [Bug c++/96438] [9/10/11 " mpolacek at gcc dot gnu.org
2021-05-14  9:53 ` [Bug c++/96438] [9/10/11/12 " jakub at gcc dot gnu.org
2021-06-01  8:18 ` rguenth at gcc dot gnu.org
2022-05-27  9:43 ` [Bug c++/96438] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:41 ` jakub at gcc dot gnu.org
2023-07-07 10:37 ` [Bug c++/96438] [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).