This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11773] New: GCOV misreports coverage for in-class C++ member functions
- From: "yuri at tsoft dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Aug 2003 19:31:27 -0000
- Subject: [Bug c++/11773] New: GCOV misreports coverage for in-class C++ member functions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11773
Summary: GCOV misreports coverage for in-class C++ member
functions
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: yuri at tsoft dot com
CC: gcc-bugs at gcc dot gnu dot org,yuri at tsoft dot com
Code (see uuencoded file src.tgz at the end of the message)
being compiled with command:
> g++ -fprofile-arcs -ftest-coverage *.cc -o tst
Then program is being run:
> ./tst
Then gcov being run:
> gcov -l a.cc
> gcov -l b.cc
WRONG RESULT OBTAINED:
in b.cc.a.h.gcov I find:
<snip>
void
###### a() {
###### printf("AA\n");
}
<snip>
this report means that function A::a() isn't used in b.cc
In fact as seen in sources it's invoked from b.cc.
Thanx,
Yuri.
--------- code ----------------------------------------------
begin 644 src.tgz
M'XL(`)X0+#\``^V644^#,!"`>>ZON.#+9A3;44;BC,GP;_A2"@K)9`N%1;/L
MOWNLFT9T\@1;LOM>#CB@38_OBBGUG=,SG$L>!@%&SL-P:N-4[N(>!Q/"YX)/
M)L+!$(3<@:#OB374IE(E@/-1E_G_]Z6E&6)"PV*P_LK3NL\QL)Y\*N71^D^$
M;-5?^$(XP/N<U($+K_]57NA%G:3@*B]SV?=IW)RR]+U*RP+6RSP!/1K/&,N+
MBKVIO!CA`:CR5=^`7A:F`IWA.E[CE?48-@Q@#FJ&(8(8GP)0GFJ>!XB]V![@
M9[=[(]@W;]FIU^(2:?R/3^R_D/YO_WWR?P@Z_&>-^0S]_$OI58D]X&7DWB+/
MA3MN>TY:GS]V_\]Z':-[_V___PDA0_)_"+Z$?S!5DB^][)$QO5#&H.P;MJKC
M1:[O;1=0^RYPT'X^M])O]UTB;N>CGWG=SC\=\ML9-8D38??_\_,_X.3_$!SW
H/^KR/^KP/^KP/R+_"8(@"((@"((@"((@"((@"*(?/@&S1(U$`"@`````
`
end