This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [bug] undefined symbols with -Woverloaded-virtual and -fprofile-arcs -ftest-coverage


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]