Internal Compiler Error

Matt Danish mrdlinux@yahoo.com
Wed Feb 23 13:41:00 GMT 2000


 egcs-2.90.29 980515 (egcs-1.0.3 release)
 
 cmd_list is an array of structures that contain a
 member called 'func' which is a pointer to a member
 function of class CmdClass.
 
 This line causes the compiler to report an bug:
      

this->*cmd_list[i].func(id,cmd,buf,cmd_list[i].subcmd);
 
 However, I discovered that it may be fixed this way:
   

(this->*cmd_list[i].func)(id,cmd,buf,cmd_list[i].subcmd);
 by adding parentheses around this->*cmd_list[i].func
 
 I do not know whether this is a bug or not, but the
 compiler shouldn't be reporting it as one, since it
 is
 just a matter of operator precedence.  If this has
 been fixed in recent versions, sorry for wasting
 your
 time.
 
 Matt Danish
 mrdlinux@yahoo.com
 
 

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


More information about the Gcc-bugs mailing list