This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/34694] New: [4.3 regression] Wrong line number for uninitialized variable
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2008 21:55:32 -0000
- Subject: [Bug middle-end/34694] New: [4.3 regression] Wrong line number for uninitialized variable
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The warning for the following testcase contains a wrong line number
on mainline (compile with "-fopenmp -O -Wall"):
================================
int i;
void foo()
{
#pragma omp parallel
{
int j;
i = j;
}
}
================================
bug.c: In function 'foo.omp_fn.0':
bug.c:8: warning: 'j' is used uninitialized in this function
bug.c:8: note: 'j' was declared here
The variable 'j' is in fact declared in line 7, and not 8.
The regression appeared between 2007-08-15 and 2007-09-14.
The bug is triggered with the C and C++ frontend.
--
Summary: [4.3 regression] Wrong line number for uninitialized
variable
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34694