Bug 54462 - gcov .bb info incorrect for C++ static initialization
Summary: gcov .bb info incorrect for C++ static initialization
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gcc
Version: 7.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-10-09 08:22 UTC by Need Real Name
Modified: 2007-04-18 16:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-12-15 17:55:23 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2001-10-09 08:22:01 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; TMSL)

Description of problem:
gcov core dumps when trying to produce coverage information with C++ which 
have static initialization

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.
#include <iostream>
#include <vector.h>

void main()
{
  vector<int> string_list;
}

2. g++ -ftest-coverage -fprofile-arcs file.cxx -o file_cov
3. ./file_cov
4. gcov file
>Aborted (core dumped)
	

Actual Results:  core dump

Expected Results:  coverage information results

Additional info:


http://gcc.gnu.org/ml/gcc-bugs/2001-04/msg00034.html by Michelle Lorenz

http://gcc.gnu.org/cgi-bin/gnatsweb.pl, problem report 3639

Comment 1 Alan Cox 2002-12-15 17:55:23 UTC
Works ok in 3.2



Note You need to log in before you can comment on or make changes to this bug.