explicit template instantiation problem (version 19981122)

Helmut Jarausch jarausch@IGPM.Rwth-Aachen.DE
Fri Nov 27 02:11:00 GMT 1998


with this recent version of EGCS I have encountered a problem that did not
occur with previous versions (say 1.1.1-prerelease-2)

I've check the ANSI specs but cannot find anything wrong with

#include <complex>
#include <iostream>

  template istream& operator>>(istream& , complex<double>&);
  template ostream& operator<<(ostream& , const complex<double>&);

/* gives
gcc_bug.C: In instantiation of `operator >><double>(istream &, complex<double> &)':
gcc_bug.C:4:   instantiated from here
gcc_bug.C:4: explicit instantiation of `operator >><double>(istream &, complex<double> &)' but no definition available
gcc_bug.C: In instantiation of `operator <<<double>(ostream &, const complex<double> &)':
gcc_bug.C:5:   instantiated from here
gcc_bug.C:5: explicit instantiation of `operator <<<double>(ostream &, const complex<double> &)' but no definition available

Many thanks for your help (and great work of course)

Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany

More information about the Gcc-bugs mailing list