http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55984
--- Comment #3 from janus at gcc dot gnu.org 2013-01-15 22:43:43 UTC --- > bug1.f: In function 'mpdata_advop': > bug1.f:42:0: internal compiler error: gfc_trans_code(): Bad statement code > call bcx%fill_halos() The ICE is due to an EXEC_COMPCALL making it into trans_code, although it should have been resolved away before. This apparently does not happen because the symbol 'bcx' is missing the class_ok attribute.