g++ 2.95.2 internal error parsing a template function operator*
sebor@my-Deja.com
Thu Jan 27 13:58:00 GMT 2000
Hi,
the following code gives an internal compiler error with g++ 2.95.2.
$ cat test.cpp
struct S { };
template <class T>
T operator* (const S&, const S&)
{
return T ();
}
int main ()
{
return operator*<int>(S (), S ());
}
$ g++ -c -fhonor-std -g -ftemplate-depth-32 --pedantic -Wall test.cpp
test.cpp: In function `int main()':
test.cpp:14: Internal compiler error.
test.cpp:14: Please submit a full bug report.
test.cpp:14: See
<URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for
instructions.
--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.
More information about the Gcc-bugs
mailing list