public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100372] New: ICE with variadic template template, internal compiler error: in strip_typedefs, at cp/tree.c:1544
@ 2021-05-01 12:30 mcs at ifam dot uni-hannover.de
  2021-05-03  7:58 ` [Bug c++/100372] [11/12 Regression] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: mcs at ifam dot uni-hannover.de @ 2021-05-01 12:30 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100372
           Summary: ICE with variadic template template, internal compiler
                    error: in strip_typedefs, at cp/tree.c:1544
           Product: gcc
           Version: 11.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mcs at ifam dot uni-hannover.de
  Target Milestone: ---

Created attachment 50724
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50724&action=edit
File contains: command line, compiler output, preprocessed sources

Minimal testcase with empty main().
Templates compile with 9.1.0 and 10.1.0 and work correctly in production code.

Attachment contains all necessary information in a single text file.
This is my first bug report; I apologize if the formatting is inconvenient.

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

* [Bug c++/100372] [11/12 Regression] ICE with variadic template template, internal compiler error: in strip_typedefs, at cp/tree.c:1544
  2021-05-01 12:30 [Bug c++/100372] New: ICE with variadic template template, internal compiler error: in strip_typedefs, at cp/tree.c:1544 mcs at ifam dot uni-hannover.de
@ 2021-05-03  7:58 ` rguenth at gcc dot gnu.org
  2021-05-03 18:34 ` ppalka at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-03  7:58 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.2
           Keywords|                            |ice-on-valid-code
            Summary|ICE with variadic template  |[11/12 Regression] ICE with
                   |template, internal compiler |variadic template template,
                   |error: in strip_typedefs,   |internal compiler error: in
                   |at cp/tree.c:1544           |strip_typedefs, at
                   |                            |cp/tree.c:1544

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

* [Bug c++/100372] [11/12 Regression] ICE with variadic template template, internal compiler error: in strip_typedefs, at cp/tree.c:1544
  2021-05-01 12:30 [Bug c++/100372] New: ICE with variadic template template, internal compiler error: in strip_typedefs, at cp/tree.c:1544 mcs at ifam dot uni-hannover.de
  2021-05-03  7:58 ` [Bug c++/100372] [11/12 Regression] " rguenth at gcc dot gnu.org
@ 2021-05-03 18:34 ` ppalka at gcc dot gnu.org
  2021-05-18 20:16 ` jason at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-05-03 18:34 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-05-03
             Status|UNCONFIRMED                 |NEW
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |ppalka at gcc dot gnu.org

--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Thanks for the bug report, confirmed.  Started with r11-7931.

Reduced reproducer:

template <bool> using enable_if_t = int;
template <class> bool has_P_match_v;
template <template <class> class... List> enable_if_t<has_P_match_v<List...>>
a;

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

* [Bug c++/100372] [11/12 Regression] ICE with variadic template template, internal compiler error: in strip_typedefs, at cp/tree.c:1544
  2021-05-01 12:30 [Bug c++/100372] New: ICE with variadic template template, internal compiler error: in strip_typedefs, at cp/tree.c:1544 mcs at ifam dot uni-hannover.de
  2021-05-03  7:58 ` [Bug c++/100372] [11/12 Regression] " rguenth at gcc dot gnu.org
  2021-05-03 18:34 ` ppalka at gcc dot gnu.org
@ 2021-05-18 20:16 ` jason at gcc dot gnu.org
  2021-05-19  0:27 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2021-05-18 20:16 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org

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

* [Bug c++/100372] [11/12 Regression] ICE with variadic template template, internal compiler error: in strip_typedefs, at cp/tree.c:1544
  2021-05-01 12:30 [Bug c++/100372] New: ICE with variadic template template, internal compiler error: in strip_typedefs, at cp/tree.c:1544 mcs at ifam dot uni-hannover.de
                   ` (2 preceding siblings ...)
  2021-05-18 20:16 ` jason at gcc dot gnu.org
@ 2021-05-19  0:27 ` cvs-commit at gcc dot gnu.org
  2021-05-19  0:56 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-19  0:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 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:061fe8c58ac4d436906a404f7fb46b0a6e0d7b4f

commit r12-894-g061fe8c58ac4d436906a404f7fb46b0a6e0d7b4f
Author: Jason Merrill <jason@redhat.com>
Date:   Tue May 18 17:12:37 2021 -0400

    c++: template template parm pack expansion [PR100372]

    Here we have a pack expansion of a template template parameter pack, of
    which the pattern is a TEMPLATE_DECL, which strip_typedefs doesn't want to
    see.

            PR c++/100372

    gcc/cp/ChangeLog:

            * tree.c (strip_typedefs): Only look at the pattern of a
            TYPE_PACK_EXPANSION if it's a type.

    gcc/testsuite/ChangeLog:

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

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

* [Bug c++/100372] [11/12 Regression] ICE with variadic template template, internal compiler error: in strip_typedefs, at cp/tree.c:1544
  2021-05-01 12:30 [Bug c++/100372] New: ICE with variadic template template, internal compiler error: in strip_typedefs, at cp/tree.c:1544 mcs at ifam dot uni-hannover.de
                   ` (3 preceding siblings ...)
  2021-05-19  0:27 ` cvs-commit at gcc dot gnu.org
@ 2021-05-19  0:56 ` cvs-commit at gcc dot gnu.org
  2021-05-19 20:18 ` jason at gcc dot gnu.org
  2021-08-05 14:55 ` mcs at ifam dot uni-hannover.de
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-19  0:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 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:74ad5558d2acddcf4f5e96129ec29dd2f3d47d3a

commit r11-8433-g74ad5558d2acddcf4f5e96129ec29dd2f3d47d3a
Author: Jason Merrill <jason@redhat.com>
Date:   Tue May 18 17:12:37 2021 -0400

    c++: template template parm pack expansion [PR100372]

    Here we have a pack expansion of a template template parameter pack, of
    which the pattern is a TEMPLATE_DECL, which strip_typedefs doesn't want to
    see.

            PR c++/100372

    gcc/cp/ChangeLog:

            * tree.c (strip_typedefs): Only look at the pattern of a
            TYPE_PACK_EXPANSION if it's a type.

    gcc/testsuite/ChangeLog:

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

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

* [Bug c++/100372] [11/12 Regression] ICE with variadic template template, internal compiler error: in strip_typedefs, at cp/tree.c:1544
  2021-05-01 12:30 [Bug c++/100372] New: ICE with variadic template template, internal compiler error: in strip_typedefs, at cp/tree.c:1544 mcs at ifam dot uni-hannover.de
                   ` (4 preceding siblings ...)
  2021-05-19  0:56 ` cvs-commit at gcc dot gnu.org
@ 2021-05-19 20:18 ` jason at gcc dot gnu.org
  2021-08-05 14:55 ` mcs at ifam dot uni-hannover.de
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2021-05-19 20:18 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 11.2/12.

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

* [Bug c++/100372] [11/12 Regression] ICE with variadic template template, internal compiler error: in strip_typedefs, at cp/tree.c:1544
  2021-05-01 12:30 [Bug c++/100372] New: ICE with variadic template template, internal compiler error: in strip_typedefs, at cp/tree.c:1544 mcs at ifam dot uni-hannover.de
                   ` (5 preceding siblings ...)
  2021-05-19 20:18 ` jason at gcc dot gnu.org
@ 2021-08-05 14:55 ` mcs at ifam dot uni-hannover.de
  6 siblings, 0 replies; 8+ messages in thread
From: mcs at ifam dot uni-hannover.de @ 2021-08-05 14:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Marc C. Steinbach <mcs at ifam dot uni-hannover.de> ---
Thanks for fixing!

I was unable to install any development snapshots,
so I waited for the 11.2.0 release to test my codes.

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

end of thread, other threads:[~2021-08-05 14:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-01 12:30 [Bug c++/100372] New: ICE with variadic template template, internal compiler error: in strip_typedefs, at cp/tree.c:1544 mcs at ifam dot uni-hannover.de
2021-05-03  7:58 ` [Bug c++/100372] [11/12 Regression] " rguenth at gcc dot gnu.org
2021-05-03 18:34 ` ppalka at gcc dot gnu.org
2021-05-18 20:16 ` jason at gcc dot gnu.org
2021-05-19  0:27 ` cvs-commit at gcc dot gnu.org
2021-05-19  0:56 ` cvs-commit at gcc dot gnu.org
2021-05-19 20:18 ` jason at gcc dot gnu.org
2021-08-05 14:55 ` mcs at ifam dot uni-hannover.de

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).