This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/24612] New: [gomp] Bogus "is used uninitialized" warning
- 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: 1 Nov 2005 11:04:07 -0000
- Subject: [Bug middle-end/24612] New: [gomp] Bogus "is used uninitialized" warning
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Compiling the following code with "-fopenmp -O -Wall" yields a bogus warning
(happens with C and C++):
======================================
void foo()
{
int i;
#pragma omp threadprivate(i)
#pragma omp parallel sections
{
#pragma omp section
{
i = 0;
++i;
}
}
}
======================================
bug.c: In function 'foo':
bug.c:11: warning: 'i' is used uninitialized in this function
--
Summary: [gomp] Bogus "is used uninitialized" warning
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: diagnostic, openmp
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=24612