This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bug report
- To: gcc-bugs at gcc dot gnu dot org
- Subject: bug report
- From: Andrew Sayers <ug55aes at cs dot bham dot ac dot uk>
- Date: Thu, 1 Jan 1998 02:11:18 +0000
The attached code produces the following error on my system:
$ g++ bug.cpp
bug.cpp: In instantiation of `C<int>':
bug.cpp:14: instantiated from here
bug.cpp:10: Internal compiler error 71.
bug.cpp:10: Please submit a full bug report.
bug.cpp:10: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
My system is:
* gcc 2.95.2 19991024, standard library 2.95.2. Both are unaltered RPM installs from Mandrake 7.0
* Mandrake 7.0 running on an AMD K6-2 350
* Linux 2.2.16 with ReiserFS.
template<class T> class C;
template<class T>
int foo(C<T>) {};
template<class CT, int (*func)(CT) >
struct temp_class {};
template<class T>
class C {
friend temp_class<C<T>, foo> bar() {};
};
void main() {
C<int> g;
};