public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30257] New: static initializers are attributed to bogus line number in coverage.
@ 2006-12-19 6:01 seongbae dot park at gmail dot com
2006-12-19 6:50 ` [Bug c++/30257] " pinskia at gcc dot gnu dot org
2006-12-19 6:58 ` seongbae dot park at gmail dot com
0 siblings, 2 replies; 3+ messages in thread
From: seongbae dot park at gmail dot com @ 2006-12-19 6:01 UTC (permalink / raw)
To: gcc-bugs
For a given input:
1 class A {
2 int a;
3 public:
4 A(int i) { a = i * i; }
5
6 virtual void func(void);
7 };
8
9 const A a1(1);
10
11 void func(void)
12 {
13 }
When compiled with -fprofile-arcs -ftest-coverage,
the gcno file contains a function
_Z41__static_initialization_and_destruction_0ii
with some of the line number attributed to t.cc:13.
Since the static initializer has nothing to do with the function
"func()", it shouldn't get that line number.
--
Summary: static initializers are attributed to bogus line number
in coverage.
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: seongbae dot park at gmail dot com
GCC build triplet: i686-unknown-linux-gnu
GCC host triplet: i686-unknown-linux-gnu
GCC target triplet: i686-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30257
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/30257] static initializers are attributed to bogus line number in coverage.
2006-12-19 6:01 [Bug c++/30257] New: static initializers are attributed to bogus line number in coverage seongbae dot park at gmail dot com
@ 2006-12-19 6:50 ` pinskia at gcc dot gnu dot org
2006-12-19 6:58 ` seongbae dot park at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-19 6:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-12-19 06:50 -------
I have seen this bug before somewhere like maybe PR 15369.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30257
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/30257] static initializers are attributed to bogus line number in coverage.
2006-12-19 6:01 [Bug c++/30257] New: static initializers are attributed to bogus line number in coverage seongbae dot park at gmail dot com
2006-12-19 6:50 ` [Bug c++/30257] " pinskia at gcc dot gnu dot org
@ 2006-12-19 6:58 ` seongbae dot park at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: seongbae dot park at gmail dot com @ 2006-12-19 6:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from seongbae dot park at gmail dot com 2006-12-19 06:58 -------
Yes, it looks like duplicate, although PR 15369 is against 3.4.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30257
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-12-19 6:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-19 6:01 [Bug c++/30257] New: static initializers are attributed to bogus line number in coverage seongbae dot park at gmail dot com
2006-12-19 6:50 ` [Bug c++/30257] " pinskia at gcc dot gnu dot org
2006-12-19 6:58 ` seongbae dot park at gmail dot com
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).