This is the mail archive of the
egcs-bugs@egcs.cygnus.com
mailing list for the EGCS project.
C++: ICE with pmf and templates...
- To: egcs-bugs@egcs.cygnus.com
- Subject: C++: ICE with pmf and templates...
- From: Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
- Date: Fri, 09 Jul 1999 00:30:56 +0200
The following code exhibits a ICE with gcc-2.96 19990613 (sparc-sun-solaris2.6
and i686-pc-linux-gnulibc1)...
mururoa->cat Bug.C
// Build don't link:
// Origin: Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
struct H {
template <class T> void k() const { }
typedef void (H::*pmf)() const;
pmf f() const { return &H::k<int>; }
};
mururoa->g++ -c Bug.C
Bug.C: In method `void (H::* H::f())() const const':
Bug.C:9: Internal compiler error.
Bug.C:9: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
Bug.C:9: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
mururoa->g++ -v
Reading specs from /u/corse/2/robotvis/gnu/bin/egcs/lib/gcc-lib/sparc-sun-solaris2.6/gcc-2.96/specs
gcc version gcc-2.96 19990613 (experimental)
--------------------------------------------------------------------
Theodore Papadopoulo
Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
--------------------------------------------------------------------