http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60550
Bug ID: 60550 Summary: ICE on factory design pattern Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: pogos77 at hotmail dot com Created attachment 32369 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32369&action=edit The test case for the design pattern: factory pattern. I want to select different benchmark problems in an optimization field. The attached program cannot compile due to an ICE. The error is ice2014.f90: In function ‘create_problem’: ice2014.f90:350:0: internal compiler error: in fold_convert_loc, at fold-const.c:1994 ALLOCATE(self%problemPtr, SOURCE=FRosenbrock(self%problemID, ndim, self%problemName)) ^ The gfortran version is gcc version 4.9.0 20140313 (experimental) [trunk revision 208526] (GCC) Thanking you for your prompt response.