The ICE message is similiar to PR45076 and PR45733, but this might be different
problem.
Compiler output:
$ gfortran -O -finline-small-functions whole_file_3.f90
whole_file_3.f90:17.71:
call PHLOAD (R, 1) ! { dg-error "Missing alternate return spec" }
1
Warning: Missing alternate return spec in subroutine call at (1)
whole_file_3.f90:18.71:
CALL PHLOAD (R, 2) ! { dg-error "Missing alternate return spec" }
1
Warning: Missing alternate return spec in subroutine call at (1)
whole_file_3.f90: In function 'test':
whole_file_3.f90:21:0: error: invalid conversion in gimple call
integer(kind=4)
void
# .MEM_12 = VDEF <.MEM_2(D)>
_result_reader_6 = r ();
whole_file_3.f90:21:0: error: invalid conversion in gimple call
integer(kind=4)
void
# .MEM_14 = VDEF <.MEM_12>
_result_reader_8 = r ();
whole_file_3.f90:21:0: error: invalid conversion in gimple call
integer(kind=4)
void
# .MEM_16 = VDEF <.MEM_14>
_result_reader_10 = r ();
whole_file_3.f90:21:0: internal compiler error: verify_stmts failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r164484 - crash
r163636 - OK
--
Summary: [4.6 Regression] gfortran.dg/whole_file_3.f90 ICE:
verify_stmts failed: invalid conversion in gimple call
with -finline-small-functions
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: zsojka at seznam dot cz
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45743