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: 980608 value returning inlines not checked


egcs behaviour is similar to gcc:

kayak-~ $ gcc test-bug.cc 
kayak-~ $ gcc -Wall test-bug.cc  
test-bug.cc: In function `double f1()':
test-bug.cc:10: warning: control reaches end of non-void function `f1()'
test-bug.cc: In function `struct A f2()':
...
kayak-~ $ $egcs test-bug.cc
kayak-~ $ $egcs -Wall test-bug.cc
test-bug.cc: In function `double f1()':
test-bug.cc:10: warning: control reaches end of non-void function `f1()'
test-bug.cc: In function `struct A f2()':
...

and seems perfectly correct

-- 

Valentin Bonnard                mailto:bonnardv@pratique.fr
info about C++/a propos du C++: http://pages.pratique.fr/~bonnardv/




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