public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35477] New: Compiling error with template subclass of a variadic template class
@ 2008-03-05 21:35 rodolfo at rodsoft dot org
2009-01-06 16:17 ` [Bug c++/35477] " jason at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: rodolfo at rodsoft dot org @ 2008-03-05 21:35 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 895 bytes --]
The following code fails to compile on gcc-4.3.0-RC2 with -std=c++0x
template <class...ARGS> struct tuple {};
template <class A, class B> struct test {};
template <class... ARGS, class B> struct test<B, tuple<ARGS...>>
{
template <class T> struct inside {};
};
g++ exits saying:
error: parameter pack ARGS must be at the end of the template parameter list
on line 5 (where struct inside is defined)
By removing the struct inside definition, it compiles fine.
--
Summary: Compiling error with template subclass of a variadic
template class
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rodolfo at rodsoft dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35477
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/35477] Compiling error with template subclass of a variadic template class
2008-03-05 21:35 [Bug c++/35477] New: Compiling error with template subclass of a variadic template class rodolfo at rodsoft dot org
@ 2009-01-06 16:17 ` jason at gcc dot gnu dot org
2009-01-07 20:43 ` jason at gcc dot gnu dot org
2009-01-07 20:56 ` jason at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-01-06 16:17 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-01-06 16:17:36
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35477
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/35477] Compiling error with template subclass of a variadic template class
2008-03-05 21:35 [Bug c++/35477] New: Compiling error with template subclass of a variadic template class rodolfo at rodsoft dot org
2009-01-06 16:17 ` [Bug c++/35477] " jason at gcc dot gnu dot org
@ 2009-01-07 20:43 ` jason at gcc dot gnu dot org
2009-01-07 20:56 ` jason at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-01-07 20:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jason at gcc dot gnu dot org 2009-01-07 20:43 -------
Subject: Bug 35477
Author: jason
Date: Wed Jan 7 20:43:01 2009
New Revision: 143166
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143166
Log:
PR c++/35297
PR c++/35477
PR c++/35784
PR c++/36846
PR c++/38276
* pt.c (check_default_tmpl_args): Don't complain about
out-of-order parameter packs in the enclosing class
or parameter packs after default args.
(coerce_template_parms): If we have more than one
parameter pack, don't flatten argument packs.
(template_args_equal): Handle argument packs.
(comp_template_args): Don't flatten argument packs.
(check_instantiated_arg): Split out from...
(check_instantiated_args): Here. Handle arg packs.
(convert_template_argument): Just check that nontype argument
packs have the right type.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/variadic92.C
trunk/gcc/testsuite/g++.dg/cpp0x/variadic93.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp0x/variadic65.C
trunk/gcc/testsuite/g++.dg/cpp0x/variadic82.C
trunk/gcc/testsuite/g++.dg/cpp0x/variadic83.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35477
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/35477] Compiling error with template subclass of a variadic template class
2008-03-05 21:35 [Bug c++/35477] New: Compiling error with template subclass of a variadic template class rodolfo at rodsoft dot org
2009-01-06 16:17 ` [Bug c++/35477] " jason at gcc dot gnu dot org
2009-01-07 20:43 ` jason at gcc dot gnu dot org
@ 2009-01-07 20:56 ` jason at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-01-07 20:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jason at gcc dot gnu dot org 2009-01-07 20:56 -------
Fixed.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35477
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-01-07 20:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-05 21:35 [Bug c++/35477] New: Compiling error with template subclass of a variadic template class rodolfo at rodsoft dot org
2009-01-06 16:17 ` [Bug c++/35477] " jason at gcc dot gnu dot org
2009-01-07 20:43 ` jason at gcc dot gnu dot org
2009-01-07 20:56 ` jason at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).