This is the mail archive of the gcc-bugs@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]

g++ 2.95.2 internal compiler error


Dear gcc maintainers;

The enclosed file, when compiled with:


> g++ -c gcctest.cpp


Yields:


gcctest.cpp:10: Internal compiler error.


Using gcc 2.95.2 on powerpc-linux-unknown-gnu.
Note that the "friend" declaration probably doesn't abide by the standard.


Congratulations on your great work. Keep it up!

Sincerely,
Luca Raggi
template <class A> class C {
  int foo;
};

class A {
  class B {
    typedef C<A> AA;
  };

  friend class B::AA;
};

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