This is the mail archive of the gcc-bugs@gcc.gnu.org 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]

Re: This code crashes egcs-1.1.1 release


"Darrington, John" <john.darrington@mitswa.com.au> writes:
> /* This code crashes egcs-2.91.60  */
> 
> void global_func( void ( * )( unsigned int ));
> 
> class Base
> {
> public:
>     static void method_in_base( unsigned int);
> 
> };
> 
> class C : public virtual Base 
> {
> } ;
> 
> class D : public virtual Base, public C
> {
> public:
> 
> 	void create_backup( void);
> };
> 
> void 
> D::create_backup( void )
> {
> 
>     global_func( method_in_base);
> 
> }

But not with gcc-2.95 pre-release, so it appears that the bug has
been fixed.

Regards,
Mumit


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