This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [bug] undefined symbols with -Woverloaded-virtual and -fprofile-arcs -ftest-coverage
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: Lothar Werzinger <lothar at tradescape dot biz>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 6 Jun 2007 17:22:23 -0700
- Subject: Re: [bug] undefined symbols with -Woverloaded-virtual and -fprofile-arcs -ftest-coverage
- References: <f46tft$s1m$1@sea.gmane.org>
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.