BUG: Pointer to member template function
Olaf Dietsche
olaf.dietsche@gmx.net
Sun Feb 20 12:18:00 GMT 2000
Hi,
i got an internal compiler error. You can reproduce the bug with the
source below. If you need further information, please ask.
Regards, Olaf.
$ g++ -v
Reading specs from /opt/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
$ uname -a
Linux tigram 2.2.11 #1 Wed Aug 11 12:00:12 CEST 1999 i686 unknown
bug.C:
--8<--cut here---
struct X {
void f ();
template<class T> void member_template ();
};
struct Y {
};
typedef void (X::*pmX) ();
void X::f ()
{
pmX x = &X::member_template<Y>;
}
--cut here-->8---
$ g++ -c bug.C
bug.C:13: Internal compiler error.
bug.C:13: Please submit a full bug report.
bug.C:13: See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.
More information about the Gcc-bugs
mailing list