This is the mail archive of the egcs-bugs@egcs.cygnus.com mailing list for the EGCS project.


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

C++: ICE with pmf and templates...



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




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