[Bug c++/62282] Undefined reference with __inline __attribute(__gnu_inline__) with -O0
dmitry.petroff at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Aug 28 10:52:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62282
--- Comment #3 from Dmitry Petrov <dmitry.petroff at gmail dot com> ---
Created attachment 33408
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33408&action=edit
g++ + gperf bug in action
Guys, I'm software developer myself and I can understand your attitute to
"declare bug as a feature". But please note, that this bug is breaking normal
development with gperf which is also a GNU tool.
In the attached archive try
make => failure in compiling bug++
make CFLAGS=-O => success, inlining happens
make CXX=clang++ => success
You're saying "we've designed this extension and it works as it should". But
why gcc links this successfully, but g++ don't? It looks like either C or C++
compiler bug.
P. S. I'm using gperf to generate code for both C server-side and C++
tools/testcases and such g++ behaviour is really unpleasing when making debug
builds.
More information about the Gcc-bugs
mailing list