From -7810892479558025810
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109fba,72f81acd9a4d6dd0
X-Google-Attributes: gid109fba,public
X-Google-Thread: f78e5,72f81acd9a4d6dd0
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1995-02-22 23:25:54 PST
Newsgroups: comp.std.c++,comp.lang.c++
Path: nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!news.belwue.de!delos.stgt.sub.org!delos.stgt.sub.org!news.maz.net!pipex!swrinde!howland.reston.ans.net!news.cac.psu.edu!news.pop.psu.edu!hudson.lm.com!godot.cc.duq.edu!newsfeed.pitt.edu!uunet!in1.uu.net!news.cygnus.com!news!jason
From: jason@cygnus.com (Jason Merrill)
Subject: Re: Forward declaration of classes nested in template classes
In-Reply-To: alhy@courant.SLAC.Stanford.EDU's message of Wed, 22 Feb 1995 17:58:03 GMT
Content-Type: text/plain; charset=US-ASCII
Message-ID: <JASON.95Feb22232554@phydeaux.cygnus.com>
Sender: news@cygnus.com
Nntp-Posting-Host: phydeaux.cygnus.com
Organization: Cygnus Support, Mountain View, CA
References: <D4Exwr.34B@unixhub.SLAC.Stanford.EDU>
Mime-Version: 1.0
Date: Thu, 23 Feb 1995 07:25:54 GMT
Lines: 18
Xref: nntp.gmd.de comp.std.c++:11603 comp.lang.c++:91426

>>>>> J Scott Berg <alhy@courant.SLAC.Stanford.EDU> writes:

> Consider the following declaration:
> template<class T> class A { class B; };
> template<class T> class A<T>::B { A<T> a; };

> As far as I can tell from the 9/20/94 WP, this is illegal (my
> compilers seem to agree with me on this, unless I have the syntax
> wrong).

Most likely, your compilers are broken.  I don't see any reason why that
code would be disallowed by the 1/31/95 WP.

Do any compilers get this right yet?

Jason




