This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug report gcc 2.95.2
- To: bug-gcc at gnu dot org
- Subject: Bug report gcc 2.95.2
- From: say at pm dot highway dot ne dot jp
- Date: Thu, 02 Nov 2000 23:28:18 +0900
// 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