public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108066] New: ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661
@ 2022-12-12  5:48 danakj at orodu dot net
  2022-12-12  5:52 ` [Bug c++/108066] " danakj at orodu dot net
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: danakj at orodu dot net @ 2022-12-12  5:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108066
           Summary: ICE in use_pack_expansion_extra_args_p, at
                    cp/pt.cc:12661
           Product: gcc
           Version: 12.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: danakj at orodu dot net
  Target Milestone: ---

```
template <class... T>
struct Foo;

template <class A, class B>
concept C = true;

template <class... T>
struct Foo {
    template <class... U>
        requires ((... && C<T, U>))
    friend void bar(Foo, Foo<U...>) {}
};

int main() {
    Foo<int> x;
    bar(x, Foo<int>());
}
```

godbolt: https://godbolt.org/z/KozobKa1q

<source>: In instantiation of 'struct Foo<int>':
<source>:15:14:   required from here
<source>:10:27: internal compiler error: in use_pack_expansion_extra_args_p, at
cp/pt.cc:12661
   10 |         requires ((... && C<T, U>))
      |                  ~~~~~~~~~^~~~~~~~~
0x22efc1e internal_error(char const*, ...)
        ???:0
0xa4af9a fancy_abort(char const*, int, char const*)
        ???:0
0xabf850 tsubst_constraint(tree_node*, tree_node*, int, tree_node*)
        ???:0
0xabf939 maybe_substitute_reqs_for(tree_node*, tree_node const*)
        ???:0
0xc7c12c instantiate_class_template(tree_node*)
        ???:0
0xafe1a3 start_decl_1(tree_node*, bool)
        ???:0
0xb1ffb7 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int,
tree_node*, tree_node*, tree_node**)
        ???:0
0xc242c7 c_parse_file()
        ???:0
0xd5e809 c_common_parse_file()
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
ASM generation compiler returned: 1
<source>: In instantiation of 'struct Foo<int>':
<source>:15:14:   required from here
<source>:10:27: internal compiler error: in use_pack_expansion_extra_args_p, at
cp/pt.cc:12661
   10 |         requires ((... && C<T, U>))
      |                  ~~~~~~~~~^~~~~~~~~
0x22efc1e internal_error(char const*, ...)
        ???:0
0xa4af9a fancy_abort(char const*, int, char const*)
        ???:0
0xabf850 tsubst_constraint(tree_node*, tree_node*, int, tree_node*)
        ???:0
0xabf939 maybe_substitute_reqs_for(tree_node*, tree_node const*)
        ???:0
0xc7c12c instantiate_class_template(tree_node*)
        ???:0
0xafe1a3 start_decl_1(tree_node*, bool)
        ???:0
0xb1ffb7 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int,
tree_node*, tree_node*, tree_node**)
        ???:0
0xc242c7 c_parse_file()
        ???:0
0xd5e809 c_common_parse_file()
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Execution build compiler returned: 1

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

* [Bug c++/108066] ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661
  2022-12-12  5:48 [Bug c++/108066] New: ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661 danakj at orodu dot net
@ 2022-12-12  5:52 ` danakj at orodu dot net
  2022-12-12  8:08 ` [Bug c++/108066] [13 Regression] " rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: danakj at orodu dot net @ 2022-12-12  5:52 UTC (permalink / raw)
  To: gcc-bugs

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

danakj at orodu dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|12.2.0                      |13.0

--- Comment #1 from danakj at orodu dot net ---
This does not reproduce in 12.2, but it does on trunk.

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

* [Bug c++/108066] [13 Regression] ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661
  2022-12-12  5:48 [Bug c++/108066] New: ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661 danakj at orodu dot net
  2022-12-12  5:52 ` [Bug c++/108066] " danakj at orodu dot net
@ 2022-12-12  8:08 ` rguenth at gcc dot gnu.org
  2022-12-12 13:28 ` [Bug c++/108066] [13 Regression] ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661 since r12-1094-gdb79713150f4f8b6 marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-12-12  8:08 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE in                      |[13 Regression] ICE in
                   |use_pack_expansion_extra_ar |use_pack_expansion_extra_ar
                   |gs_p, at cp/pt.cc:12661     |gs_p, at cp/pt.cc:12661
           Keywords|                            |ice-on-valid-code
   Target Milestone|---                         |13.0

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

* [Bug c++/108066] [13 Regression] ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661 since r12-1094-gdb79713150f4f8b6
  2022-12-12  5:48 [Bug c++/108066] New: ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661 danakj at orodu dot net
  2022-12-12  5:52 ` [Bug c++/108066] " danakj at orodu dot net
  2022-12-12  8:08 ` [Bug c++/108066] [13 Regression] " rguenth at gcc dot gnu.org
@ 2022-12-12 13:28 ` marxin at gcc dot gnu.org
  2022-12-12 17:19 ` ppalka at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-12-12 13:28 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-12-12
            Summary|[13 Regression] ICE in      |[13 Regression] ICE in
                   |use_pack_expansion_extra_ar |use_pack_expansion_extra_ar
                   |gs_p, at cp/pt.cc:12661     |gs_p, at cp/pt.cc:12661
                   |                            |since
                   |                            |r12-1094-gdb79713150f4f8b6

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r12-1094-gdb79713150f4f8b6 where all active branches are affected
as the revision was backported.

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

* [Bug c++/108066] [13 Regression] ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661 since r12-1094-gdb79713150f4f8b6
  2022-12-12  5:48 [Bug c++/108066] New: ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661 danakj at orodu dot net
                   ` (2 preceding siblings ...)
  2022-12-12 13:28 ` [Bug c++/108066] [13 Regression] ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661 since r12-1094-gdb79713150f4f8b6 marxin at gcc dot gnu.org
@ 2022-12-12 17:19 ` ppalka at gcc dot gnu.org
  2022-12-21 11:56 ` [Bug c++/108066] [10/11/12/13 " rguenth at gcc dot gnu.org
  2022-12-21 16:09 ` ppalka at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-12-12 17:19 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

* [Bug c++/108066] [10/11/12/13 Regression] ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661 since r12-1094-gdb79713150f4f8b6
  2022-12-12  5:48 [Bug c++/108066] New: ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661 danakj at orodu dot net
                   ` (3 preceding siblings ...)
  2022-12-12 17:19 ` ppalka at gcc dot gnu.org
@ 2022-12-21 11:56 ` rguenth at gcc dot gnu.org
  2022-12-21 16:09 ` ppalka at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-12-21 11:56 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
      Known to fail|                            |10.4.1, 11.3.1, 12.2.1,
                   |                            |13.0
   Target Milestone|13.0                        |10.5
      Known to work|                            |10.4.0, 11.3.0, 12.2.0
            Summary|[13 Regression] ICE in      |[10/11/12/13 Regression]
                   |use_pack_expansion_extra_ar |ICE in
                   |gs_p, at cp/pt.cc:12661     |use_pack_expansion_extra_ar
                   |since                       |gs_p, at cp/pt.cc:12661
                   |r12-1094-gdb79713150f4f8b6  |since
                   |                            |r12-1094-gdb79713150f4f8b6

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

* [Bug c++/108066] [10/11/12/13 Regression] ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661 since r12-1094-gdb79713150f4f8b6
  2022-12-12  5:48 [Bug c++/108066] New: ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661 danakj at orodu dot net
                   ` (4 preceding siblings ...)
  2022-12-21 11:56 ` [Bug c++/108066] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-12-21 16:09 ` ppalka at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-12-21 16:09 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
dup

*** This bug has been marked as a duplicate of bug 107853 ***

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

end of thread, other threads:[~2022-12-21 16:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-12  5:48 [Bug c++/108066] New: ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661 danakj at orodu dot net
2022-12-12  5:52 ` [Bug c++/108066] " danakj at orodu dot net
2022-12-12  8:08 ` [Bug c++/108066] [13 Regression] " rguenth at gcc dot gnu.org
2022-12-12 13:28 ` [Bug c++/108066] [13 Regression] ICE in use_pack_expansion_extra_args_p, at cp/pt.cc:12661 since r12-1094-gdb79713150f4f8b6 marxin at gcc dot gnu.org
2022-12-12 17:19 ` ppalka at gcc dot gnu.org
2022-12-21 11:56 ` [Bug c++/108066] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-12-21 16:09 ` 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).