public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov/profile/23052] New: return of class object sometimes reported as uncovered code
@ 2005-07-25  1:40 jbuck at gcc dot gnu dot org
  2005-07-25  1:41 ` [Bug gcov/profile/23052] " jbuck at gcc dot gnu dot org
  2005-07-25  1:43 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: jbuck at gcc dot gnu dot org @ 2005-07-25  1:40 UTC (permalink / raw)
  To: gcc-bugs

With the attached test case, do

% g++ -ftest-coverage -fprofile-arcs covbug.cpp -o covbug
% ./covbug
% gcov covbug.cpp

There will be two lines flagged as uncovered:

% grep '####' covbug.cpp.gcov
    #####:   29:    m_bits = new unsigned[nw];
    #####:   37:  return result;

The first is expected, the second is wrong.  I repeatedly see
errors of this type, where a return of a class object is flagged as
not covered.  Either a "-" (indicating that no code is present) or an
execution count would be acceptable, but putting out ##### indicating
uncovered source code is a bug.

-- 
           Summary: return of class object sometimes reported as uncovered
                    code
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gcov/profile
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jbuck at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23052


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug gcov/profile/23052] return of class object sometimes reported as uncovered code
  2005-07-25  1:40 [Bug gcov/profile/23052] New: return of class object sometimes reported as uncovered code jbuck at gcc dot gnu dot org
@ 2005-07-25  1:41 ` jbuck at gcc dot gnu dot org
  2005-07-25  1:43 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: jbuck at gcc dot gnu dot org @ 2005-07-25  1:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jbuck at gcc dot gnu dot org  2005-07-25 01:40 -------
Created an attachment (id=9355)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9355&action=view)
test case


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23052


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug gcov/profile/23052] return of class object sometimes reported as uncovered code
  2005-07-25  1:40 [Bug gcov/profile/23052] New: return of class object sometimes reported as uncovered code jbuck at gcc dot gnu dot org
  2005-07-25  1:41 ` [Bug gcov/profile/23052] " jbuck at gcc dot gnu dot org
@ 2005-07-25  1:43 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-25  1:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-25 01:43 -------
This is a dup of bug 12076.  The bug is in the C++ front-end removing the return statement as result 
is replaced with the returned structure.

*** This bug has been marked as a duplicate of 12076 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23052


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-07-25  1:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-25  1:40 [Bug gcov/profile/23052] New: return of class object sometimes reported as uncovered code jbuck at gcc dot gnu dot org
2005-07-25  1:41 ` [Bug gcov/profile/23052] " jbuck at gcc dot gnu dot org
2005-07-25  1:43 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).