This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/24612] [gomp] Bogus "is used uninitialized" warning
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Nov 2005 08:23:09 -0000
- Subject: [Bug middle-end/24612] [gomp] Bogus "is used uninitialized" warning
- References: <bug-24612-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jakub at gcc dot gnu dot org 2005-11-02 08:23 -------
That testcase is IMHO invalid (see
http://gcc.gnu.org/ml/gcc-patches/2005-11/msg00099.html
), but
void
foo (void)
{
int i;
#pragma omp parallel sections shared (i)
{
#pragma omp section
{
i = 0;
++i;
}
}
}
which is valid warns too.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24612