This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25219] [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE
- 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: 16 Jan 2006 17:40:21 -0000
- Subject: [Bug fortran/25219] [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE
- References: <bug-25219-11116@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from jakub at gcc dot gnu dot org 2006-01-16 17:40 -------
This is not Fortran specific,
int main (void)
{
static int i;
static int k;
k = 3;
#pragma omp parallel
#pragma omp for private(i) lastprivate(k)
for (i = 1; i <= 100; i = i + 1)
k = i;
__builtin_printf ("%d\n", k);
return 0;
}
ICEs the same. I can't reproduce this in the Fedora Core gcc though,
so I think this got fixed by
http://gcc.gnu.org/ml/gcc-patches/2005-12/msg01192.html
Dunno about its status, Diego, was it subsummed by your
http://gcc.gnu.org/ml/gcc-patches/2006-01/msg00668.html
patch?
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aldyh at gcc dot gnu dot
| |org, dnovillo at gcc dot gnu
| |dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25219