[Bug c++/88982] ICE in tsubst_pack_expansion, at cp/pt.c:12221

2025-07-15 Thread mario.rodriguezb1 at um dot es via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88982

--- Comment #6 from MARIO RODRIGUEZ BEJAR  ---
Shall i open a separate bug?

[Bug c++/88982] ICE in tsubst_pack_expansion, at cp/pt.c:12221

2025-07-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88982

--- Comment #5 from Andrew Pinski  ---
(In reply to MARIO RODRIGUEZ BEJAR from comment #4)
> /* internal compiler error: Check code */

This is definitely a different issue.

[Bug c++/88982] ICE in tsubst_pack_expansion, at cp/pt.c:12221

2025-07-14 Thread mario.rodriguezb1 at um dot es via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88982

MARIO RODRIGUEZ BEJAR  changed:

   What|Removed |Added

 CC||mario.rodriguezb1 at um dot es

--- Comment #4 from MARIO RODRIGUEZ BEJAR  ---
/* internal compiler error: Check code */
int main() {
auto func = [](auto... args) constexpr {
return (([](Ts arg) {
return arg;
}(args)),...);
};
func(2, 6, 7);
}

Arise same issue:

:6:25: internal compiler error: in tsubst_pack_expansion, at
cp/pt.cc:14039
4 | return (([](Ts arg) {
  |~~
5 | return arg;
  | ~~~
6 | }(args)),...);
  | ^
0x287a025 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
???:0
0x289bd06 internal_error(char const*, ...)
???:0
0xaf4a22 fancy_abort(char const*, int, char const*)
???:0
0xd7993d instantiate_decl(tree_node*, bool, bool)
???:0
0xc01e23 maybe_instantiate_decl(tree_node*)
???:0
0xc03b97 mark_used(tree_node*, int)
???:0
0xb31163 build_op_call(tree_node*, vec**, int)
???:0
0xda442e finish_call_expr(tree_node*, vec**, bool,
bool, int)
???:0
0xd21723 c_parse_file()
???:0
0xe8b9d9 c_common_parse_file()
???:0

[Bug c++/88982] ICE in tsubst_pack_expansion, at cp/pt.c:12221

2020-11-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88982

--- Comment #3 from CVS Commits  ---
The master branch has been updated by Marek Polacek :

https://gcc.gnu.org/g:a210d404d08e363af4b2e2a60986c3cb08f8ebc5

commit r11-4890-ga210d404d08e363af4b2e2a60986c3cb08f8ebc5
Author: Marek Polacek 
Date:   Tue Nov 10 14:57:19 2020 -0500

c++: Add 5 unfixed tests.

A couple of dg-ice tests.

gcc/testsuite/ChangeLog:

PR c++/52830
PR c++/88982
PR c++/90799
PR c++/87765
PR c++/89565
* g++.dg/cpp0x/constexpr-52830.C: New test.
* g++.dg/cpp0x/vt-88982.C: New test.
* g++.dg/cpp1z/class-deduction76.C: New test.
* g++.dg/cpp1z/constexpr-lambda26.C: New test.
* g++.dg/cpp2a/nontype-class39.C: New test.

[Bug c++/88982] ICE in tsubst_pack_expansion, at cp/pt.c:12221

2019-02-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88982

--- Comment #2 from Marek Polacek  ---
Started with r247842.  Before that:

88982.C: In instantiation of ‘struct A’:
88982.C:10:14:   required from here
88982.C:2:73: error: type mismatch in nontype parameter pack
   template class ...Cs, Cs ...Vs> struct B {
 ^
88982.C:2:73: error: could not convert template argument
‘#‘nontype_argument_pack’ not supported by dump_expr#’ from
‘Cs’ to ‘Cs’
88982.C:2:73: error: type mismatch in nontype parameter pack
88982.C:2:73: error: could not convert template argument
‘#‘nontype_argument_pack’ not supported by dump_expr#’ from
‘Cs’ to ‘Cs’
88982.C:10:16: error: ‘B’ in ‘struct A’ does not name a
template type
 A::B b;
^

[Bug c++/88982] ICE in tsubst_pack_expansion, at cp/pt.c:12221

2019-02-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88982

Marek Polacek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2019-02-13
 CC||mpolacek at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Marek Polacek  ---
Confirmed.