BUG: Pointer to template function in namespace
Olaf Dietsche
olaf.dietsche@gmx.net
Mon May 15 11:38: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 #3 Wed Apr 26 11:47:05 CEST 2000 i686 unknown
bug.C:
--8<--cut here---
struct X {
};
namespace N {
template<class T> void signal_function ();
};
void f ()
{
typedef void (*PF) ();
PF x = &N::signal_function<X>;
}
--cut here-->8---
$ g++ -c bug.C
bug.C: In function `void f()':
bug.C:11: Internal compiler error 373.
bug.C:11: Please submit a full bug report.bug.C:11: See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.
More information about the Gcc-bugs
mailing list