Bug#302989: optimizer breaks function inlining
Steve M. Robbins writes:
> Package: g++-4.0
> Version: 4.0-0pre5
> Severity: normal
>
> Hi,
>
> The following test code (atof.cc) elicits no warning when compiled with
>
> g++-4.0 -c -Wall atof.cc
>
> but with optimization GCC complains about the standard library
> function atof():
>
> steve@riemann{test}g++-4.0 -c -Wall -O atof.cc
> atof.cc: In member function 'double A::foo()':
> atof.cc:15: warning: control may reach end of non-void function 'double atof(const char*)' being inlined
> /usr/include/stdlib.h:378: warning: control may reach end of non-void function 'double strtod(const char*, char**)' being inlined
fixed upstream, please recheck with the gcc-snapshot package
Reply to: