This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/14926] [3.4/3.5 regression] forward declarations and strong using
- From: "llewelly at xmission dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Apr 2004 21:52:54 -0000
- Subject: [Bug libstdc++/14926] [3.4/3.5 regression] forward declarations and strong using
- References: <20040412174718.14926.vassili_bourdo@softhome.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From llewelly at xmission dot com 2004-04-12 21:52 -------
Subject: Re: [3.4/3.5 regression] forward declarations and strong using
"bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:
> ------- Additional Comments From bangerth at dealii dot org 2004-04-12 20:00 -------
> I was under the impression that an implementation was allowed to declare
> (for example) its vector class as
> template <typename T, typename Allocator = alloc<something>,
> typename additional_parameter=something >
> class vector {...};
> and that this was the reason to make forward declarations of classes in
> namespace std:: undefined. I may be wrong, though. It doesn't also matter
> here.
http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/lwg-closed.html#94
explains why additional template parameters are not allowed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14926