https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118336
Bug ID: 118336 Summary: -freport-bug does nothing for Fortran Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- -freport-bug does not work as advertised for Fortran: $ cat z1.F90 #define N 1 program p type t character :: a integer :: b integer :: c(t(N)) end type type(t) :: z = t('a', 2, [3]) end $ gfortran -freport-bug -c z1.F90 z1.F90:9:28: 9 | type(t) :: z = t('a', 2, [3]) | 1 Error: Bad array spec of component 'c' referenced in structure constructor at (1) f951: internal compiler error: Segmentation fault 0x276239f internal_error(char const*, ...) ../../trunk/gcc/diagnostic-global-context.cc:517 0x11f33b6 crash_signal ../../trunk/gcc/toplev.cc:322 [...] 0xaec6d8 gfc_parse_file() ../../trunk/gcc/fortran/parse.cc:7368 0xb48d0f gfc_be_parse_file ../../trunk/gcc/fortran/f95-lang.cc:241 Please submit a full bug report, with preprocessed source. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.