This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: egcs-2.90.27 980315 (egcs-1.0.2 release): <string>/-pedantic


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



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