[bug] undefined symbols with -Woverloaded-virtual and -fprofile-arcs -ftest-coverage
Joe Buck
Joe.Buck@synopsys.COM
Thu Jun 7 00:22:00 GMT 2007
On Wed, Jun 06, 2007 at 11:13:16AM -0700, Lothar Werzinger wrote:
> when I build a coverage build of my software I get some undefined symbols
> like global constructors keyed to src_utility_Tree.cpp_90B986A5_564B8955
>
> I did some investigation and as you can see in the below test it only occurs
> if I specify -Woverloaded-virtual.
>
> What is strange, too is that if I save the preprocessed file (created with
> the -E flag) the undefined symbol does NOT show up even if I
> use -Woverloaded-virtual
>
> I think this is a bug in g++
Sounds like it. I suggest that you file a bug report, with a complete
testcase, so that it can be fixed.
More information about the Gcc
mailing list