public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99904] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13056
@ 2021-04-04  7:23 hewillk at gmail dot com
  2021-04-04 15:05 ` [Bug c++/99904] " mpolacek at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: hewillk at gmail dot com @ 2021-04-04  7:23 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99904
           Summary: ICE: in tsubst_pack_expansion, at cp/pt.c:13056
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

maybe dup of PR 99595.

https://godbolt.org/z/zarsP11Y6

template <class> concept C = true;
template <class> struct A {};
template <template <C...> class>
struct S {};
constexpr S<A> s;


<source>:5:14: internal compiler error: in tsubst_pack_expansion, at
cp/pt.c:13056
    5 | constexpr S<A> s;
      |              ^
0x1cfcc99 internal_error(char const*, ...)
        ???:0
0x6baa77 fancy_abort(char const*, int, char const*)
        ???:0
0x9305c7 tsubst_pack_expansion(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x739b56 tsubst_constraint(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x739cd1 tsubst_constraint_info(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x929233 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*,
int, int)
        ???:0
0x97fa1d finish_template_type(tree_node*, tree_node*, int)
        ???:0
0x8e14fd c_parse_file()
        ???:0
0xa601f2 c_common_parse_file()
        ???:0
Please submit a full bug report,
with preprocessed source if appropriate.

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

* [Bug c++/99904] ICE: in tsubst_pack_expansion, at cp/pt.c:13056
  2021-04-04  7:23 [Bug c++/99904] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13056 hewillk at gmail dot com
@ 2021-04-04 15:05 ` mpolacek at gcc dot gnu.org
  2021-10-01 20:09 ` ppalka at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-04-04 15:05 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
                 CC|                            |mpolacek at gcc dot gnu.org
   Last reconfirmed|                            |2021-04-04

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.  GCC 9 ICEs too, but in a different place.

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

* [Bug c++/99904] ICE: in tsubst_pack_expansion, at cp/pt.c:13056
  2021-04-04  7:23 [Bug c++/99904] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13056 hewillk at gmail dot com
  2021-04-04 15:05 ` [Bug c++/99904] " mpolacek at gcc dot gnu.org
@ 2021-10-01 20:09 ` ppalka at gcc dot gnu.org
  2021-10-07 14:04 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-10-01 20:09 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

* [Bug c++/99904] ICE: in tsubst_pack_expansion, at cp/pt.c:13056
  2021-04-04  7:23 [Bug c++/99904] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13056 hewillk at gmail dot com
  2021-04-04 15:05 ` [Bug c++/99904] " mpolacek at gcc dot gnu.org
  2021-10-01 20:09 ` ppalka at gcc dot gnu.org
@ 2021-10-07 14:04 ` cvs-commit at gcc dot gnu.org
  2021-10-07 14:20 ` [Bug c++/99904] [concepts] " cvs-commit at gcc dot gnu.org
  2021-10-07 14:21 ` ppalka at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-07 14:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>:

https://gcc.gnu.org/g:2e6e0d86a06389056d0e7fecc99c547420ad787a

commit r12-4229-g2e6e0d86a06389056d0e7fecc99c547420ad787a
Author: Patrick Palka <ppalka@redhat.com>
Date:   Thu Oct 7 10:02:54 2021 -0400

    c++: variadic ttp constraint subsumption [PR99904]

    Here we're crashing when level-lowering the variadic constraint C<Ts...>
    on the template template parameter TT because tsubst_pack_expansion expects
    processing_template_decl to be set during a partial substitution.

            PR c++/99904

    gcc/cp/ChangeLog:

            * pt.c (is_compatible_template_arg): Set processing_template_decl
            around tsubst_constraint_info.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp2a/concepts-ttp4.C: New test.

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

* [Bug c++/99904] [concepts] ICE: in tsubst_pack_expansion, at cp/pt.c:13056
  2021-04-04  7:23 [Bug c++/99904] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13056 hewillk at gmail dot com
                   ` (2 preceding siblings ...)
  2021-10-07 14:04 ` cvs-commit at gcc dot gnu.org
@ 2021-10-07 14:20 ` cvs-commit at gcc dot gnu.org
  2021-10-07 14:21 ` ppalka at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-07 14:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Patrick Palka
<ppalka@gcc.gnu.org>:

https://gcc.gnu.org/g:052b2df6f0ecd1e5b55056911b16bca8b31ef7df

commit r11-9088-g052b2df6f0ecd1e5b55056911b16bca8b31ef7df
Author: Patrick Palka <ppalka@redhat.com>
Date:   Thu Oct 7 10:02:54 2021 -0400

    c++: variadic ttp constraint subsumption [PR99904]

    Here we're crashing when level-lowering the variadic constraint C<Ts...>
    on the template template parameter TT because tsubst_pack_expansion expects
    processing_template_decl to be set during a partial substitution.

            PR c++/99904

    gcc/cp/ChangeLog:

            * pt.c (is_compatible_template_arg): Set processing_template_decl
            around tsubst_constraint_info.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp2a/concepts-ttp4.C: New test.

    (cherry picked from commit 2e6e0d86a06389056d0e7fecc99c547420ad787a)

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

* [Bug c++/99904] [concepts] ICE: in tsubst_pack_expansion, at cp/pt.c:13056
  2021-04-04  7:23 [Bug c++/99904] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13056 hewillk at gmail dot com
                   ` (3 preceding siblings ...)
  2021-10-07 14:20 ` [Bug c++/99904] [concepts] " cvs-commit at gcc dot gnu.org
@ 2021-10-07 14:21 ` ppalka at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-10-07 14:21 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
   Target Milestone|---                         |11.3
             Status|ASSIGNED                    |RESOLVED

--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Fixed for GCC 11.3 and 12.

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

end of thread, other threads:[~2021-10-07 14:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-04  7:23 [Bug c++/99904] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13056 hewillk at gmail dot com
2021-04-04 15:05 ` [Bug c++/99904] " mpolacek at gcc dot gnu.org
2021-10-01 20:09 ` ppalka at gcc dot gnu.org
2021-10-07 14:04 ` cvs-commit at gcc dot gnu.org
2021-10-07 14:20 ` [Bug c++/99904] [concepts] " cvs-commit at gcc dot gnu.org
2021-10-07 14:21 ` ppalka 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).