This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
19980530 ICE - templates
- To: egcs-bugs at cygnus dot com
- Subject: 19980530 ICE - templates
- From: njs3 at doc dot ic dot ac dot uk (Niall Smart)
- Date: Fri, 5 Jun 1998 18:13:39 +0100
Hi,
[njs3@pingu ~]$ g++ -v
Reading specs from
/tmp/egcs-19980531/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.34/specs
gcc version egcs-2.91.34 19980530 (gcc2 ss-980502 experimental)
[njs3@pingu ~]$ g++ bug.cc
bug2.cc: In function `int main()':
bug2.cc:22: Internal compiler error.
bug2.cc:22: Please submit a full bug report to `egcs-bugs@cygnus.com'.
class test
{
public:
void foo(const int& i);
};
template<class T, class R, class A>
class C
{
public:
C(T* obj, R (T::*mem)(const A& a), const A& a);
};
int
main()
{
test t;
void (test::*m)(const int&) = &test::foo;
C(&t, m, 2);
}
Please CC me on any replies,
Regards,
Niall