🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #985

(none)

#985
From: Dov Kruger
Date: Sat, 22 Aug 1992 08:35
23 lines
866 bytes
Nested classes result in a syntax error when the enclosing class is a template.
DEC's cxx compiler successfully swallows this, and I can't find anything to
indicate that it should be illegal, so I assume it's a bug.  Thanks for a
generally wonderful product.  My only question is -- when will you have exceptions?

cheers,
dov


template <class T> class A {
public:
  T* _data;
  class Iter {
    T* _data;
  };
};


main()
{
  A<int> x;
  A<int>::Iter y;
}
Technical Details
Message-ID: <9208221635.AA01769@ds20.dmi.stevens-tech.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!ds20.dmi.stevens-tech.edu!dov

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!ds20.dmi.stevens-tech.edu!dov
From: dov@ds20.dmi.stevens-tech.edu (Dov Kruger)
Subject: (none)
Message-ID: <9208221635.AA01769@ds20.dmi.stevens-tech.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sat, 22 Aug 1992 08:35:28 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 24