This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C++ PATCH for GC


On Tue, 7 Sep 1999, Mark Mitchell wrote:
> Here's a fateful patch: GC is now enabled in the C++ compiler.  If
> you notice C++ regressions, or bootstrap failures, please let me know.

Out of a sudden, the following snippet 

  template <class T>
  class TLITERAL : public T 
      {
      int x;
      };

  class ATOM  { int y; };
  class GATOM;

  typedef TLITERAL<ATOM>            LITERAL;
  typedef TLITERAL<GATOM>           GLITERAL;

results in the following error message

  x.cc: In instantiation of `TLITERAL<GATOM>':
  x.cc:11:   instantiated from here
  x.cc:11: base class `GATOM' has incomplete type

while it used to work fine with all versions of EGCS and current CVS.
Due to bootstrap problems I cannot say when this started, but it's a
fairly recent change.

Gerald
-- 
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]