This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11418] New: Nested template as arg to base class template confuses args
- From: "GccBugs at Skyler dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jul 2003 02:15:04 -0000
- Subject: [Bug c++/11418] New: Nested template as arg to base class template confuses args
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11418
Summary: Nested template as arg to base class template confuses
args
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: GccBugs at Skyler dot com
CC: gcc-bugs at gcc dot gnu dot org
In certain cases a class template used as a base class receives an incorrect
type as a template argument. If the derived class takes two type arguments
which are used as arguments to two class templates, one nested inside the
other, the problem occurs if the first argument is used with the inner template
and the second argument is used with the outer template, and the resulting
(inner) type is passed to the base class. The type actually used by the base
class uses the first argument of the derived class for BOTH the outer and inner
templates.