This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37737] ICE on variadic template function
- From: "cfairles at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Oct 2008 12:02:03 -0000
- Subject: [Bug c++/37737] ICE on variadic template function
- References: <bug-37737-16746@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from cfairles at gcc dot gnu dot org 2008-10-05 12:02 -------
This variant also ice's in same place but issues error first:
ice2.cpp:
template<class U, class... T>
void f()
{
f<T...>();
}
template<>
void f() { }
int main()
{
f<char>();
}
ice2.cpp:8: error: template-id ?f<>? for ?void f()? does not match any template
declaration
ice2.cpp: In function ?void f() [with U = char, T = ]?:
ice2.cpp:12: instantiated from here
ice2.cpp:4: internal compiler error: tree check: accessed elt 1 of tree_vec
with 0 elts in get_innermost_template_args, at cp/pt.c:516
(note: both compiled with -std=c++0x)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37737