This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bugs
- To: <bug-gcc at gnu dot org>
- Subject: Bugs
- From: "kgeorgiy" <kgeorgiy at green dot ifmo dot ru>
- Date: Wed, 5 Jul 2000 14:10:57 +0400
GCC version 2.95.2
DOS (djgpp)
no options
<Source code for bug 1>
struct A { // class A { public:
template <class T> void f(T) {}
};
void (*&h)(int) = A::f<int>;
</Source code for bug 1>
Produces internal compiler error 56
<Source code for bug 2>
namespace A {
template <class T> void f(T) {}
};
void (*&h)(int) = A::f<int>;
</Source code for bug 2>
Produces internal compiler error 363