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


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;
};

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