This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bug report gcc 2.95.2


// 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]