The attached program gives an ICE: bash-3.2# gfortran-dev reduced.f03 reduced.f03: In function 'mysql_library_shutdown': reduced.f03:24: internal compiler error: in bitmap_first_set_bit, at bitmap.c:770 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.
when compiled with gfortran 4.4 trunk. Adding a "=> NULL()" to the procptr declaration makes it compile, and commenting out any of the three lines of code in the function bodies gives the ICE of PR 38152 instead. -- Summary: ICE in bitmap_first_set_bit for procptr and C binding Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: domob at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38831