This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/51339] [4.6/4.7 Regression] ICE: in convert_move, at expr.c:326 with -fopenmp and parallel for
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 05 Dec 2011 15:44:15 +0000
- Subject: [Bug c/51339] [4.6/4.7 Regression] ICE: in convert_move, at expr.c:326 with -fopenmp and parallel for
- Auto-submitted: auto-generated
- References: <bug-51339-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51339
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011-12-05
CC| |jakub at gcc dot gnu.org
Component|middle-end |c
Ever Confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-05 15:44:15 UTC ---
Reduced testcase:
char g[] = "g";
void
foo (void)
{
#pragma omp parallel sections firstprivate (g) lastprivate (g)
{
#pragma omp section
g[0] = 'h';
}
}
With char g[2] this works. Seems a C FE bug.