[Xorp-hackers] compiler brokes at EtherMac::valid
edrt
edrt@citiz.net
Tue, 2 Dec 2003 13:34:33 +0800
Hi All,
When porting mac.cc, my compiler broken at EtherMac::valid.
Is "buf[s.size() + 1]" definition valid ? Instead, when replace it with fixed size definition the
compiler doesn't complains.
Is it someting to do with my compiler? My compiler is g++ppc (gcc driver version
cygnus-2.7.2-960126 egcs-971225), below is the output of the compiler :
/*
* ccppc -g -mcpu=860 -ansi -nostdinc -DRW_MULTI_THREAD -D_REENTRANT -fvolatile -fno-builtin
* -fno-for-scope -I. -IC:\Tornado\target\h -DCPU=PPC860 -c E:\NIP\source\libxorp\mac.cc
* E:\NIP\source\libxorp\mac.cc: In function `static bool EtherMac::valid(const class basic_s
* tring<char,string_char_traits<char>,__default_alloc_template<true,0> > &)':
* E:\NIP\source\libxorp\mac.cc:113: Internal compiler error.
* E:\NIP\source\libxorp\mac.cc:113: Please submit a full bug report to `egcs-bugs@cygnus.com
* '.
* make: *** [mac.o] Error 0x1
*/
Edrt