> From: Thomas Witt [mailto:witt@ive.uni-hannover.de]
>
> template <class T>
> class C
> {
>   friend class T;
> };
>
> Though gcc-2.95.3 and edg in ms mode accept
>
> template <class T>
> class C
> {
>    friend T;
> };
>
> I think neither this nor the solution above is legal with
> regard to the
> standard. To be more accurate it looks like this problem is
> not covered by
> the standard.
>

AFAICT both cases are ill-formed *and* covered by the Standard (7.1.5.3p1, 7.1.5.3p2, 7.1.5.3p3).

Bjorn