[Bug c++/57527] [C++11] Nested variadic templates cause internal compiler error

2024-02-16 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57527

Marek Polacek  changed:

   What|Removed |Added

 CC||mpolacek at gcc dot gnu.org

--- Comment #6 from Marek Polacek  ---
// PR c++/57527

template 
struct X {};
template 
struct Y {
  template 
  Y(X... xs);
};

void
g ()
{
  X x;
  Y y(x);
}

[Bug c++/57527] [C++11] Nested variadic templates cause internal compiler error

2021-11-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57527

Andrew Pinski  changed:

   What|Removed |Added

 CC||marxin at gcc dot gnu.org

--- Comment #5 from Andrew Pinski  ---
*** Bug 102871 has been marked as a duplicate of this bug. ***

[Bug c++/57527] [C++11] Nested variadic templates cause internal compiler error

2019-06-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57527

Marek Polacek  changed:

   What|Removed |Added

 CC||mpolacek at gcc dot gnu.org

--- Comment #4 from Marek Polacek  ---
Still ICEs.  Unsure if a dup of one of the existing unify bugs.

$ ./cc1plus -quiet 57527.C
57527.C: In substitution of ‘template Y::Y(X...)
[with unsigned int ...N = ]’:
57527.C:15:15:   required from here
57527.C:15:15: internal compiler error: in unify, at cp/pt.c:22209
   15 | Y y( x );
  |   ^
0xaeccfc unify
/home/mpolacek/src/gcc/gcc/cp/pt.c:22209
0xaee55f unify
/home/mpolacek/src/gcc/gcc/cp/pt.c:22553
0xaea113 try_class_unification
/home/mpolacek/src/gcc/gcc/cp/pt.c:21548
0xaee985 unify
/home/mpolacek/src/gcc/gcc/cp/pt.c:22590
0xae77f3 unify_one_argument
/home/mpolacek/src/gcc/gcc/cp/pt.c:20781
0xaeb037 unify_pack_expansion
/home/mpolacek/src/gcc/gcc/cp/pt.c:21796
0xae7e20 type_unification_real
/home/mpolacek/src/gcc/gcc/cp/pt.c:20920
0xae5f81 fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node*
const*, unsigned int, tree_node*, unification_kind_t, int, conversion**, bool,
bool)
/home/mpolacek/src/gcc/gcc/cp/pt.c:20280
0x85b35a add_template_candidate_real
/home/mpolacek/src/gcc/gcc/cp/call.c:3315
0x85b8ec add_template_candidate
/home/mpolacek/src/gcc/gcc/cp/call.c:3400
0x863c22 add_candidates
/home/mpolacek/src/gcc/gcc/cp/call.c:5724
0x85d67d build_user_type_conversion_1
/home/mpolacek/src/gcc/gcc/cp/call.c:3953
0x8561c1 implicit_conversion
/home/mpolacek/src/gcc/gcc/cp/call.c:1999
0x8554a1 reference_binding
/home/mpolacek/src/gcc/gcc/cp/call.c:1838
0x855ae3 implicit_conversion
/home/mpolacek/src/gcc/gcc/cp/call.c:1937
0x857d24 add_function_candidate
/home/mpolacek/src/gcc/gcc/cp/call.c:2330
0x863c63 add_candidates
/home/mpolacek/src/gcc/gcc/cp/call.c:5737
0x873778 build_new_method_call_1
/home/mpolacek/src/gcc/gcc/cp/call.c:9753
0x8743f2 build_new_method_call(tree_node*, tree_node*, vec**, tree_node*, int, tree_node**, int)
/home/mpolacek/src/gcc/gcc/cp/call.c:9940
0x871eab build_special_member_call(tree_node*, tree_node*, vec**, tree_node*, int, int)
/home/mpolacek/src/gcc/gcc/cp/call.c:9366
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.

[Bug c++/57527] [C++11] Nested variadic templates cause internal compiler error

2013-06-04 Thread markus.mayr at outlook dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57527

--- Comment #1 from markus.mayr at outlook dot com ---
Created attachment 30257
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30257action=edit
Source code example.


[Bug c++/57527] [C++11] Nested variadic templates cause internal compiler error

2013-06-04 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57527

Jonathan Wakely redi at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2013-06-04
 Ever confirmed|0   |1

--- Comment #2 from Jonathan Wakely redi at gcc dot gnu.org ---
Possibly a dup of Bug 54090 but fails at a different place


[Bug c++/57527] [C++11] Nested variadic templates cause internal compiler error

2013-06-04 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57527

Daniel Krügler daniel.kruegler at googlemail dot com changed:

   What|Removed |Added

 CC||daniel.kruegler@googlemail.
   ||com

--- Comment #3 from Daniel Krügler daniel.kruegler at googlemail dot com ---
This problem still exists in gcc 4.9.0 20130519 (experimental). The
corresponding error message here is:

main.cpp|15|required from here|
 main.cpp|15|internal compiler error: in unify, at cp/pt.c:16742