public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/113746] New: [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename
@ 2024-02-03 15:54 zsojka at seznam dot cz
  2024-02-03 21:52 ` [Bug c++/113746] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: zsojka at seznam dot cz @ 2024-02-03 15:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113746
           Summary: [14 Regression] ICE: tree check: expected
                    enumeral_type, have error_mark in tsubst_expr, at
                    cp/pt.cc:21458 with missing typename
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

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

Compiler output:
$ x86_64-pc-linux-gnu-gcc testcase.C -wrapper valgrind,-q
testcase.C:1:12: error: 'typename_T' has not been declared
    1 | template < typename_T > struct S {
      |            ^~~~~~~~~~
testcase.C:2:24: internal compiler error: tree check: expected enumeral_type,
have error_mark in tsubst_expr, at cp/pt.cc:21458
    2 |   enum { e0 = 0, e00 = e0 };
      |                        ^~
0x96eab7 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        /repo/gcc-trunk/gcc/tree.cc:8952
==27631== Invalid read of size 1
==27631==    at 0x2DF67C0: x86_64_fallback_frame_state (md-unwind-support.h:63)
==27631==    by 0x2DF67C0: uw_frame_state_for (unwind-dw2.c:1013)
==27631==    by 0x2DF7AFD: _Unwind_Backtrace (unwind.inc:303)
==27631==    by 0x2DA0F49: backtrace_full (backtrace.c:127)
==27631==    by 0x2D03556:
diagnostic_context::action_after_output(diagnostic_t) (diagnostic.cc:781)
==27631==    by 0x2D0376B: diagnostic_action_after_output (diagnostic.h:1002)
==27631==    by 0x2D0376B:
diagnostic_context::report_diagnostic(diagnostic_info*) (diagnostic.cc:1633)
==27631==    by 0x2D03AE8: diagnostic_impl(rich_location*, diagnostic_metadata
const*, int, char const*, __va_list_tag (*) [1], diagnostic_t)
(diagnostic.cc:1767)
==27631==    by 0x2D041B6: internal_error(char const*, ...)
(diagnostic.cc:2225)
==27631==    by 0x96EAB7: tree_check_failed(tree_node const*, char const*, int,
char const*, ...) (tree.cc:8952)
==27631==  Address 0x1 is not stack'd, malloc'd or (recently) free'd
==27631== 

testcase.C:2:24: internal compiler error: Segmentation fault
0x1816b62 crash_signal
        /repo/gcc-trunk/gcc/toplev.cc:317
0x2df67c0 x86_64_fallback_frame_state
        ./md-unwind-support.h:63
0x2df67c0 uw_frame_state_for
        /repo/gcc-trunk/libgcc/unwind-dw2.c:1013
0x2df7afd _Unwind_Backtrace
        /repo/gcc-trunk/libgcc/unwind.inc:303
0x2da0f49 backtrace_full
        /repo/gcc-trunk/libbacktrace/backtrace.c:127
0x2d03556 diagnostic_context::action_after_output(diagnostic_t)
        /repo/gcc-trunk/gcc/diagnostic.cc:781
0x2d0376b diagnostic_action_after_output(diagnostic_context*, diagnostic_t)
        /repo/gcc-trunk/gcc/diagnostic.h:1002
0x2d0376b diagnostic_context::report_diagnostic(diagnostic_info*)
        /repo/gcc-trunk/gcc/diagnostic.cc:1633
0x2d03ae8 diagnostic_impl
        /repo/gcc-trunk/gcc/diagnostic.cc:1767
0x2d041b6 internal_error(char const*, ...)
        /repo/gcc-trunk/gcc/diagnostic.cc:2225
0x96eab7 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        /repo/gcc-trunk/gcc/tree.cc:8952

$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r14-8771-20240203001826-g4b7d4d8a4af-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r14-8771-20240203001826-g4b7d4d8a4af-checking-yes-rtl-df-extra-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.1 20240203 (experimental) (GCC)

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

* [Bug c++/113746] [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename
  2024-02-03 15:54 [Bug c++/113746] New: [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename zsojka at seznam dot cz
@ 2024-02-03 21:52 ` pinskia at gcc dot gnu.org
  2024-02-04  5:17 ` pinskia at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-02-03 21:52 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0
           Keywords|                            |needs-bisection

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I am not sure if this is a regression ...

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

* [Bug c++/113746] [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename
  2024-02-03 15:54 [Bug c++/113746] New: [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename zsojka at seznam dot cz
  2024-02-03 21:52 ` [Bug c++/113746] " pinskia at gcc dot gnu.org
@ 2024-02-04  5:17 ` pinskia at gcc dot gnu.org
  2024-02-05  9:01 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-02-04  5:17 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2024-02-04

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
.

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

* [Bug c++/113746] [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename
  2024-02-03 15:54 [Bug c++/113746] New: [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename zsojka at seznam dot cz
  2024-02-03 21:52 ` [Bug c++/113746] " pinskia at gcc dot gnu.org
  2024-02-04  5:17 ` pinskia at gcc dot gnu.org
@ 2024-02-05  9:01 ` rguenth at gcc dot gnu.org
  2024-02-11 13:40 ` fkastl at suse dot cz
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-02-05  9:01 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4

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

* [Bug c++/113746] [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename
  2024-02-03 15:54 [Bug c++/113746] New: [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2024-02-05  9:01 ` rguenth at gcc dot gnu.org
@ 2024-02-11 13:40 ` fkastl at suse dot cz
  2024-02-11 13:42 ` [Bug c++/113746] [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename since r14-4796-g3e3d73ed5e85e7 sjames at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: fkastl at suse dot cz @ 2024-02-11 13:40 UTC (permalink / raw)
  To: gcc-bugs

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

Filip Kastl <fkastl at suse dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fkastl at suse dot cz

--- Comment #3 from Filip Kastl <fkastl at suse dot cz> ---
Why shouldn't this be a regression? I've just bisected it to
g:3e3d73ed5e85e7f467c366e9ad219d558ef9cb79.

Could someone please add the author of the commit to CCs and also remove the
"needs-bisection" keyword?

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

* [Bug c++/113746] [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename since r14-4796-g3e3d73ed5e85e7
  2024-02-03 15:54 [Bug c++/113746] New: [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2024-02-11 13:40 ` fkastl at suse dot cz
@ 2024-02-11 13:42 ` sjames at gcc dot gnu.org
  2024-02-11 13:42 ` sjames at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-02-11 13:42 UTC (permalink / raw)
  To: gcc-bugs

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

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[14 Regression] ICE: tree   |[14 Regression] ICE: tree
                   |check: expected             |check: expected
                   |enumeral_type, have         |enumeral_type, have
                   |error_mark in tsubst_expr,  |error_mark in tsubst_expr,
                   |at cp/pt.cc:21458 with      |at cp/pt.cc:21458 with
                   |missing typename            |missing typename since
                   |                            |r14-4796-g3e3d73ed5e85e7
                 CC|                            |ppalka at gcc dot gnu.org,
                   |                            |sjames at gcc dot gnu.org
           Keywords|needs-bisection             |

--- Comment #4 from Sam James <sjames at gcc dot gnu.org> ---
(In reply to Filip Kastl from comment #3)

Filip, you seem to have commit access (apologies if I'm wrong). If so, you can
change your BZ email to <your sourceware email>@gcc.gnu.org and automatically
get permissions.

Anyway, doing that now.

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

* [Bug c++/113746] [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename since r14-4796-g3e3d73ed5e85e7
  2024-02-03 15:54 [Bug c++/113746] New: [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename zsojka at seznam dot cz
                   ` (4 preceding siblings ...)
  2024-02-11 13:42 ` [Bug c++/113746] [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename since r14-4796-g3e3d73ed5e85e7 sjames at gcc dot gnu.org
@ 2024-02-11 13:42 ` sjames at gcc dot gnu.org
  2024-02-11 13:57 ` pheeck at gcc dot gnu.org
  2024-05-07  7:44 ` [Bug c++/113746] [14/15 " rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-02-11 13:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Sam James <sjames at gcc dot gnu.org> ---
s/sourceware email/sourceware user/

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

* [Bug c++/113746] [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename since r14-4796-g3e3d73ed5e85e7
  2024-02-03 15:54 [Bug c++/113746] New: [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename zsojka at seznam dot cz
                   ` (5 preceding siblings ...)
  2024-02-11 13:42 ` sjames at gcc dot gnu.org
@ 2024-02-11 13:57 ` pheeck at gcc dot gnu.org
  2024-05-07  7:44 ` [Bug c++/113746] [14/15 " rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: pheeck at gcc dot gnu.org @ 2024-02-11 13:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Filip Kastl <pheeck at gcc dot gnu.org> ---
(In reply to Sam James from comment #4)
> (In reply to Filip Kastl from comment #3)
> 
> Filip, you seem to have commit access (apologies if I'm wrong). If so, you
> can change your BZ email to <your sourceware email>@gcc.gnu.org and
> automatically get permissions.

Just did that. Didn't know about this. Thanks for the tip!

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

* [Bug c++/113746] [14/15 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename since r14-4796-g3e3d73ed5e85e7
  2024-02-03 15:54 [Bug c++/113746] New: [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename zsojka at seznam dot cz
                   ` (6 preceding siblings ...)
  2024-02-11 13:57 ` pheeck at gcc dot gnu.org
@ 2024-05-07  7:44 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-05-07  7:44 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|14.0                        |14.2

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 14.1 is being released, retargeting bugs to GCC 14.2.

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

end of thread, other threads:[~2024-05-07  7:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-03 15:54 [Bug c++/113746] New: [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename zsojka at seznam dot cz
2024-02-03 21:52 ` [Bug c++/113746] " pinskia at gcc dot gnu.org
2024-02-04  5:17 ` pinskia at gcc dot gnu.org
2024-02-05  9:01 ` rguenth at gcc dot gnu.org
2024-02-11 13:40 ` fkastl at suse dot cz
2024-02-11 13:42 ` [Bug c++/113746] [14 Regression] ICE: tree check: expected enumeral_type, have error_mark in tsubst_expr, at cp/pt.cc:21458 with missing typename since r14-4796-g3e3d73ed5e85e7 sjames at gcc dot gnu.org
2024-02-11 13:42 ` sjames at gcc dot gnu.org
2024-02-11 13:57 ` pheeck at gcc dot gnu.org
2024-05-07  7:44 ` [Bug c++/113746] [14/15 " 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).