egcs-2.90.27 980315 (egcs-1.0.2 release): <string>/-pedantic
Alexandre Oliva
oliva@dcc.unicamp.br
Sat Aug 15 13:52:00 GMT 1998
E Jay Berkenbilt <ejb@ql.org> writes:
> #include <string>
> class A { public: A() {}; private: string a; };
> GNU C++ version egcs-2.90.27 980315 (egcs-1.0.2 release) (i386-redhat-linux) compiled by GNU C version egcs-2.90.27 980315 (egcs-1.0.2 release).
> /usr/include/g++/std/bastring.h: In method `void basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> >::Rep::release()':
> /usr/include/g++/std/bastring.h:76: warning: inline function `static void basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> >::Rep::operator delete(void *)' called before definition
> /usr/include/g++/std/bastring.h:76: warning: inline function `static void basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> >::Rep::operator delete(void *)' called before definition
> I always use the -Wall -ansi -pedantic when I compile to help me write
> code that is as portable as possible.
this is fixed in the latest egcs snapshot.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc-bugs
mailing list