http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56655
Bug #: 56655 Summary: Associate construct with OpenMP triggers ICE Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: towns...@astro.wisc.edu Created attachment 29692 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29692 Test source file to reproduce the error Attempting to compile the attached file with gfortran -fopenmp -c openmp_ice.f90 ...gives the following result: openmp_ice.f90: In function ‘sub’: openmp_ice.f90:8:0: internal compiler error: in omp_add_variable, at gimplify.c:5894 associate(x_a => x) ^ openmp_ice.f90:8:0: internal compiler error: Abort trap: 6 gfortran.exec: internal compiler error: Abort trap: 6 (program f951) /Applications/madsdk/bin/gfortran: line 7: 16428 Abort trap: 6 /Applications/madsdk/bin/gfortran.exec -fopenmp -c openmp_ice.f90 This may be related to PR 56062. My system: Using built-in specs. COLLECT_GCC=/Applications/madsdk/bin/gfortran.exec COLLECT_LTO_WRAPPER=/Applications/madsdk/libexec/gcc/x86_64-apple-darwin11.4.2/4.8.0/lto-wrapper Target: x86_64-apple-darwin11.4.2 Configured with: ./configure CC='gcc -D_FORTIFY_SOURCE=0' --build=x86_64-apple-darwin11.4.2 --prefix=/Applications/madsdk --with-gmp=/Applications/madsdk --with-mpfr=/Applications/madsdk --with-mpc=/Applications/madsdk --enable-languages=c,c++,fortran --disable-multilib Thread model: posix gcc version 4.8.0 20130307 (experimental) (GCC)