BUG? Inlined function generates error message

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

BUG? Inlined function generates error message

Johann Klammer
Hello,

I was trying to recompile icarus verilog on my box, and ran into this
rather strange bug.

<http://members.aon.at/~aklamme4/scratch/gcc_fail.tbz>

This contains two .cc files and one script that compiles(ignore the
warnings) and links them. When linking it complains:

/./gcc_a.cc:23: undefined reference to `check_identifier(char const*,
unsigned int)'
collect2: error: ld returned 1 exit status

The function is there but declared with:

#ifdef __GNUC__
__inline
#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
__attribute__ ((__gnu_inline__))
#endif
#endif
const struct lexor_keyword *
...

It does not get called from outside...

-rdynamic and -ldl do not seem to change things

Versions:

$ dpkg -l binutils gcc
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  binutils       2.24.51.2014 i386         GNU assembler, linker and
binary
ii  gcc            4:4.9.1-1    i386         GNU C compiler

(on a debian testing)

The code fragment is from a gperf generated file....

What to do?


_______________________________________________
help-gplusplus mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-gplusplus