https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79440
Bug ID: 79440 Summary: internal compiler error: in fold_convert_loc, at fold-const.c:2373 Product: gcc Version: 6.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: for2008 at web dot de Target Milestone: --- Created attachment 40705 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40705&action=edit Each module was originally in a separate file. The program is planned to by used for a finite element program. There a groups, that contain elements. Each element has a material. Hi, the example shows a problem with the constructor of a derived class in line 180 in connection with line 168. If I change in line 168 from type(CMaterial) to class(CMaterial), the program works. The attached version with type(CMaterial) crashes with internal compiler error. Programm compiles with no errors, but executable is not created. I'm not sure what the Fortran standard requires, but an internal compiler error shouldn't happen. Tested with, both behave the same: Ubuntu 16.10 with gfortran 6.2.0 windows 10, MSYS2, mingw64, gfortran 6.3.0 By the way: programm runs with no errors with Intel ifort. Full error message: internal compiler error: in fold_convert_loc, at fold-const.c:2373 libbacktrace could not find executable to open Please submit a full bug report Thanks