public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/103057] New: Internal compiler error: Error reporting routines re-entered
@ 2021-11-03 13:00 plasmahh at gmx dot net
  2021-11-03 13:07 ` [Bug c++/103057] " marxin at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: plasmahh at gmx dot net @ 2021-11-03 13:00 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103057
           Summary: Internal compiler error: Error reporting routines
                    re-entered
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: plasmahh at gmx dot net
  Target Milestone: ---

Created attachment 51728
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51728&action=edit
cvise generated testcase

Compiling the attached testcase (generated with cvise out of a "real world"
piece of code, where supressing an "unused parameter" warning makes this go
away, due to the testcase being an error now, the error will trigger it too I
guess) with -std=gnu++2b (and likely some others) will ICE out:

Internal compiler error: Error reporting routines re-entered.
0xbd474d cxx_incomplete_type_diagnostic(unsigned int, tree_node const*,
tree_node const*, diagnostic_t)
        ../../gcc/cp/typeck2.c:330
0xb6629c cxx_incomplete_type_diagnostic(tree_node const*, tree_node const*,
diagnostic_t)
        ../../gcc/cp/cp-tree.h:8016
0xb6629c cxx_incomplete_type_error(tree_node const*, tree_node const*)
        ../../gcc/cp/cp-tree.h:8025
0xb6629c instantiate_class_template_1
        ../../gcc/cp/pt.c:12106
0xb66cd2 instantiate_class_template(tree_node*)
        ../../gcc/cp/pt.c:12302
0xbb58d9 complete_type(tree_node*)
        ../../gcc/cp/typeck.c:143
0xbb5a94 complete_type(tree_node*)
        ../../gcc/cp/typeck.c:169
0xbb5a94 complete_type_or_maybe_complain(tree_node*, tree_node*, int)
        ../../gcc/cp/typeck.c:156
0xb4ddb2 tsubst(tree_node*, tree_node*, int, tree_node*)
        ../../gcc/cp/pt.c:16069
0xb4ef9b tsubst_template_args(tree_node*, tree_node*, int, tree_node*)
        ../../gcc/cp/pt.c:13411
0xb4caa2 tsubst(tree_node*, tree_node*, int, tree_node*)
        ../../gcc/cp/pt.c:15449
0xa3266c dump_template_bindings
        ../../gcc/cp/error.c:482
0xa2bbba dump_function_decl
        ../../gcc/cp/error.c:1796
0xa33e0d decl_to_string
        ../../gcc/cp/error.c:3216
0xa33e0d cp_printer
        ../../gcc/cp/error.c:4387
0x1f9317c pp_format(pretty_printer*, text_info*)
        ../../gcc/pretty-print.c:1475
0x1f76b92 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        ../../gcc/diagnostic.c:1342
0x1f770f6 diagnostic_impl
        ../../gcc/diagnostic.c:1504
0x1f7787f permerror(unsigned int, char const*, ...)
        ../../gcc/diagnostic.c:1771
0xa26072 c_parse_final_cleanups()
        ../../gcc/cp/decl2.c:5255

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

* [Bug c++/103057] Internal compiler error: Error reporting routines re-entered
  2021-11-03 13:00 [Bug c++/103057] New: Internal compiler error: Error reporting routines re-entered plasmahh at gmx dot net
@ 2021-11-03 13:07 ` marxin at gcc dot gnu.org
  2021-11-03 13:09 ` marxin at gcc dot gnu.org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-03 13:07 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
           Keywords|                            |ice-on-invalid-code
                 CC|                            |marxin at gcc dot gnu.org
   Last reconfirmed|                            |2021-11-03

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Is the original test-case a valid code?

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

* [Bug c++/103057] Internal compiler error: Error reporting routines re-entered
  2021-11-03 13:00 [Bug c++/103057] New: Internal compiler error: Error reporting routines re-entered plasmahh at gmx dot net
  2021-11-03 13:07 ` [Bug c++/103057] " marxin at gcc dot gnu.org
@ 2021-11-03 13:09 ` marxin at gcc dot gnu.org
  2021-11-03 13:49 ` plasmahh at gmx dot net
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-03 13:09 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Likely started with r11-291-g0f50f6daa140186a.

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

* [Bug c++/103057] Internal compiler error: Error reporting routines re-entered
  2021-11-03 13:00 [Bug c++/103057] New: Internal compiler error: Error reporting routines re-entered plasmahh at gmx dot net
  2021-11-03 13:07 ` [Bug c++/103057] " marxin at gcc dot gnu.org
  2021-11-03 13:09 ` marxin at gcc dot gnu.org
@ 2021-11-03 13:49 ` plasmahh at gmx dot net
  2021-11-07  7:30 ` [Bug c++/103057] [11/12 Regression] " pinskia at gcc dot gnu.org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: plasmahh at gmx dot net @ 2021-11-03 13:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Dennis Lubert <plasmahh at gmx dot net> ---
Yes, the original testcase is valid code that compiles fine with -w

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

* [Bug c++/103057] [11/12 Regression] Internal compiler error: Error reporting routines re-entered
  2021-11-03 13:00 [Bug c++/103057] New: Internal compiler error: Error reporting routines re-entered plasmahh at gmx dot net
                   ` (2 preceding siblings ...)
  2021-11-03 13:49 ` plasmahh at gmx dot net
@ 2021-11-07  7:30 ` pinskia at gcc dot gnu.org
  2021-11-10 15:17 ` plasmahh at gmx dot net
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-07  7:30 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.3
            Summary|Internal compiler error:    |[11/12 Regression] Internal
                   |Error reporting routines    |compiler error: Error
                   |re-entered                  |reporting routines
                   |                            |re-entered

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Dennis Lubert from comment #3)
> Yes, the original testcase is valid code that compiles fine with -w

There might be two different bugs here I think, can you redo your reduction but
this test also testing if -w still compiles the source?

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

* [Bug c++/103057] [11/12 Regression] Internal compiler error: Error reporting routines re-entered
  2021-11-03 13:00 [Bug c++/103057] New: Internal compiler error: Error reporting routines re-entered plasmahh at gmx dot net
                   ` (3 preceding siblings ...)
  2021-11-07  7:30 ` [Bug c++/103057] [11/12 Regression] " pinskia at gcc dot gnu.org
@ 2021-11-10 15:17 ` plasmahh at gmx dot net
  2021-11-10 15:22 ` [Bug c++/103057] [11/12 Regression] Internal compiler error: Error reporting routines re-entered since r11-291-g0f50f6daa140186a marxin at gcc dot gnu.org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: plasmahh at gmx dot net @ 2021-11-10 15:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Dennis Lubert <plasmahh at gmx dot net> ---
Created attachment 51759
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51759&action=edit
cvise generated compling testcase

This one is pretty big but compiles with -w but ICEs without it. Differently to
my original code, here there is no unused argument that when being used
silences the warning and so circumvents the ICE. So I am not totally sure if
there maybe a third bug lurking somewhere...

Currently our code to be able to not ICE disables Wunused-parameter and
Wunused-value for the functions in question.

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

* [Bug c++/103057] [11/12 Regression] Internal compiler error: Error reporting routines re-entered since r11-291-g0f50f6daa140186a
  2021-11-03 13:00 [Bug c++/103057] New: Internal compiler error: Error reporting routines re-entered plasmahh at gmx dot net
                   ` (4 preceding siblings ...)
  2021-11-10 15:17 ` plasmahh at gmx dot net
@ 2021-11-10 15:22 ` marxin at gcc dot gnu.org
  2022-01-17 13:01 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-10 15:22 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[11/12 Regression] Internal |[11/12 Regression] Internal
                   |compiler error: Error       |compiler error: Error
                   |reporting routines          |reporting routines
                   |re-entered                  |re-entered since
                   |                            |r11-291-g0f50f6daa140186a
           Keywords|ice-on-invalid-code         |ice-on-valid-code

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
Thank you for the test-case. It started with r11-291-g0f50f6daa140186a with
-std=gnu2a.

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

* [Bug c++/103057] [11/12 Regression] Internal compiler error: Error reporting routines re-entered since r11-291-g0f50f6daa140186a
  2021-11-03 13:00 [Bug c++/103057] New: Internal compiler error: Error reporting routines re-entered plasmahh at gmx dot net
                   ` (5 preceding siblings ...)
  2021-11-10 15:22 ` [Bug c++/103057] [11/12 Regression] Internal compiler error: Error reporting routines re-entered since r11-291-g0f50f6daa140186a marxin at gcc dot gnu.org
@ 2022-01-17 13:01 ` rguenth at gcc dot gnu.org
  2022-01-25  2:55 ` jason at gcc dot gnu.org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-17 13:01 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2

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

* [Bug c++/103057] [11/12 Regression] Internal compiler error: Error reporting routines re-entered since r11-291-g0f50f6daa140186a
  2021-11-03 13:00 [Bug c++/103057] New: Internal compiler error: Error reporting routines re-entered plasmahh at gmx dot net
                   ` (6 preceding siblings ...)
  2022-01-17 13:01 ` rguenth at gcc dot gnu.org
@ 2022-01-25  2:55 ` jason at gcc dot gnu.org
  2022-01-26  4:23 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu.org @ 2022-01-25  2:55 UTC (permalink / raw)
  To: gcc-bugs

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

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

* [Bug c++/103057] [11/12 Regression] Internal compiler error: Error reporting routines re-entered since r11-291-g0f50f6daa140186a
  2021-11-03 13:00 [Bug c++/103057] New: Internal compiler error: Error reporting routines re-entered plasmahh at gmx dot net
                   ` (7 preceding siblings ...)
  2022-01-25  2:55 ` jason at gcc dot gnu.org
@ 2022-01-26  4:23 ` cvs-commit at gcc dot gnu.org
  2022-01-26  4:26 ` [Bug c++/103057] [11 " jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-01-26  4:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 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:f3e6ef7d873885ffaa0db7f4185364bbd7a70505

commit r12-6872-gf3e6ef7d873885ffaa0db7f4185364bbd7a70505
Author: Jason Merrill <jason@redhat.com>
Date:   Tue Jan 25 15:12:16 2022 -0500

    c++: alias template and typename [PR103057]

    Usually we handle DR1558 substitution near the top of tsubst, but in this
    case while substituting TYPENAME_TYPE we were passing an alias
    specialization to tsubst_aggr_type, which ignored its aliasness.

            PR c++/103057

    gcc/cp/ChangeLog:

            * pt.cc (tsubst_aggr_type): Call tsubst for alias template
            specialization.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/alias-decl-void1.C: New test.

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

* [Bug c++/103057] [11 Regression] Internal compiler error: Error reporting routines re-entered since r11-291-g0f50f6daa140186a
  2021-11-03 13:00 [Bug c++/103057] New: Internal compiler error: Error reporting routines re-entered plasmahh at gmx dot net
                   ` (8 preceding siblings ...)
  2022-01-26  4:23 ` cvs-commit at gcc dot gnu.org
@ 2022-01-26  4:26 ` jason at gcc dot gnu.org
  2022-01-26  5:01 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu.org @ 2022-01-26  4:26 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[11/12 Regression] Internal |[11 Regression] Internal
                   |compiler error: Error       |compiler error: Error
                   |reporting routines          |reporting routines
                   |re-entered since            |re-entered since
                   |r11-291-g0f50f6daa140186a   |r11-291-g0f50f6daa140186a

--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
The second testcase isn't actually valid code, either.  Fixed for 12 so far.

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

* [Bug c++/103057] [11 Regression] Internal compiler error: Error reporting routines re-entered since r11-291-g0f50f6daa140186a
  2021-11-03 13:00 [Bug c++/103057] New: Internal compiler error: Error reporting routines re-entered plasmahh at gmx dot net
                   ` (9 preceding siblings ...)
  2022-01-26  4:26 ` [Bug c++/103057] [11 " jason at gcc dot gnu.org
@ 2022-01-26  5:01 ` jason at gcc dot gnu.org
  2022-03-22  5:18 ` cvs-commit at gcc dot gnu.org
  2022-04-12 17:29 ` jason at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu.org @ 2022-01-26  5:01 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |glisse at gcc dot gnu.org

--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> ---
*** Bug 104184 has been marked as a duplicate of this bug. ***

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

* [Bug c++/103057] [11 Regression] Internal compiler error: Error reporting routines re-entered since r11-291-g0f50f6daa140186a
  2021-11-03 13:00 [Bug c++/103057] New: Internal compiler error: Error reporting routines re-entered plasmahh at gmx dot net
                   ` (10 preceding siblings ...)
  2022-01-26  5:01 ` jason at gcc dot gnu.org
@ 2022-03-22  5:18 ` cvs-commit at gcc dot gnu.org
  2022-04-12 17:29 ` jason at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-03-22  5:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 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:b3411d7a36ee1d38923dcf9db26a1dd252827b64

commit r11-9682-gb3411d7a36ee1d38923dcf9db26a1dd252827b64
Author: Jason Merrill <jason@redhat.com>
Date:   Tue Jan 25 15:12:16 2022 -0500

    c++: alias template and typename [PR103057]

    Usually we handle DR1558 substitution near the top of tsubst, but in this
    case while substituting TYPENAME_TYPE we were passing an alias
    specialization to tsubst_aggr_type, which ignored its aliasness.

            PR c++/103057

    gcc/cp/ChangeLog:

            * pt.c (tsubst_aggr_type): Call tsubst for alias template
            specialization.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/alias-decl-void1.C: New test.

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

* [Bug c++/103057] [11 Regression] Internal compiler error: Error reporting routines re-entered since r11-291-g0f50f6daa140186a
  2021-11-03 13:00 [Bug c++/103057] New: Internal compiler error: Error reporting routines re-entered plasmahh at gmx dot net
                   ` (11 preceding siblings ...)
  2022-03-22  5:18 ` cvs-commit at gcc dot gnu.org
@ 2022-04-12 17:29 ` jason at gcc dot gnu.org
  12 siblings, 0 replies; 14+ messages in thread
From: jason at gcc dot gnu.org @ 2022-04-12 17:29 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 11.3.

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

end of thread, other threads:[~2022-04-12 17:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-03 13:00 [Bug c++/103057] New: Internal compiler error: Error reporting routines re-entered plasmahh at gmx dot net
2021-11-03 13:07 ` [Bug c++/103057] " marxin at gcc dot gnu.org
2021-11-03 13:09 ` marxin at gcc dot gnu.org
2021-11-03 13:49 ` plasmahh at gmx dot net
2021-11-07  7:30 ` [Bug c++/103057] [11/12 Regression] " pinskia at gcc dot gnu.org
2021-11-10 15:17 ` plasmahh at gmx dot net
2021-11-10 15:22 ` [Bug c++/103057] [11/12 Regression] Internal compiler error: Error reporting routines re-entered since r11-291-g0f50f6daa140186a marxin at gcc dot gnu.org
2022-01-17 13:01 ` rguenth at gcc dot gnu.org
2022-01-25  2:55 ` jason at gcc dot gnu.org
2022-01-26  4:23 ` cvs-commit at gcc dot gnu.org
2022-01-26  4:26 ` [Bug c++/103057] [11 " jason at gcc dot gnu.org
2022-01-26  5:01 ` jason at gcc dot gnu.org
2022-03-22  5:18 ` cvs-commit at gcc dot gnu.org
2022-04-12 17:29 ` 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).