This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35022] [4.3 regression] ICE with parameter pack in template constant parameter
- From: "dgregor at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Feb 2008 03:35:54 -0000
- Subject: [Bug c++/35022] [4.3 regression] ICE with parameter pack in template constant parameter
- References: <bug-35022-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from dgregor at gcc dot gnu dot org 2008-02-15 03:35 -------
This test case actually exposes two (!) related issues, one of which is a
rejects-valid:
template<typename... T, template<T...> class X> void foo(X<0>);
and the other, which is an ice-on-valid-code:
template<typename... T, template<T...p> class X> void foo(X<0>);
The issue for both the original test case and this last test case is that
coerce_template_parameter_pack doesn't expect to get a pack expansion back from
tsubst_pack_expansion, but of course this happens in nested templates like this
template template parameter.
Note to myself: the parameter pack SIZEOF_EXPR handling doesn't deal with pack
expansions coming back from tsubst_pack_expansion, either. I can probably craft
a test case to illustrate this issue.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35022