From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 310 invoked by alias); 18 Oct 2010 01:14:48 -0000 Received: (qmail 32620 invoked by uid 22791); 18 Oct 2010 01:14:47 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Oct 2010 01:14:42 +0000 From: "andreas.milton.m at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/46061] New: Variadic Template Templates: not expandable into fixed-size argument list, Implementation Gap. X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: andreas.milton.m at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Mon, 18 Oct 2010 01:14:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-10/txt/msg01434.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D46061 Summary: Variadic Template Templates: not expandable into fixed-size argument list, Implementation Gap. Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: andreas.milton.m@gmail.com Created attachment 22073 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D22073 full demo for bug ( .ii-file <14 lines) The following struct "type_list" marks a list of types, which is constructe= d as a template template class with a variadic type list of template arguments: template class T, template clas= s... R>=20 struct type_list=20 {=20 typedef type_list< T, R... > tail;=20 };=20 template class T>=20 struct type_list {}; The code (attached as variadic_templ_templ.ii) produces the following error-message (identical for gcc 4.4 and 4.5.1): "sorry, unimplemented: cannot expand =E2=80=98template class ... R .= ..=E2=80=99 into a fixed-length argument list" No other flags than -v -save-temps -Wall -std=3Dc++0x were used.