This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g++ 2.95.2 internal error parsing a template function operator*
- To: "gcc bug list" <gcc-bugs at gcc dot gnu dot org>
- Subject: g++ 2.95.2 internal error parsing a template function operator*
- From: " " <sebor at my-Deja dot com>
- Date: Thu, 27 Jan 2000 13:57:22 -0800
- Organization: My Deja Email (http://www.my-deja.com:80)
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.