bug: structs in functions: Internal compiler error

Robert Suna suna@fzi.de
Sun Apr 19 23:03:00 GMT 1998


I have compiled that code with egcs-2.90.27 980315 (egcs-1.0.2 release) on
solaris2.5.0 and Linux 2.0.32, it crashes.

bug4.C: In method `void tNet<tN>::Copy(const class tNet<tN> &, bool)':
bug4.C:14: Internal compiler error.


template <class tN>
class tNet
{
public:
  typedef tN* tLay;

  void Copy( const tNet& src, bool only_value_copy );
};

template <class tN>
void tNet<tN>::
Copy( const tNet& src, bool only_value_copy )
{
  struct tVlay {
    tLay* org;
    tLay* dest;
  };
}



More information about the Gcc-bugs mailing list