Bug report gcc 2.95.2

say@pm.highway.ne.jp say@pm.highway.ne.jp
Thu Nov 2 06:34:00 GMT 2000


// temp.cc
#include<iostream.h>
class A
{
private:
template <class T>
static	void	func(void *v){}
friend	void	kiro(int);
};
void	kiro(int a){ void	(*f)(void*) = A::func<int>; }// temp.cc: line10
main(){
	kiro(3);
	cerr << endl;
}

#cc temp.cc -lstdc++
temp.cc: In function `void kiro(int)`:
temp.cc:10: Internal compiler error 56.
temp.cc:10: Please submit a full bug report.
temp.cc:10: See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
#gcc -v
Using builtin specs
gcc version 2.95.2 19991024 (released)

os : freeBSD 4.1R


More information about the Gcc-bugs mailing list