Command line: $ gfortran -O[0123] -fprofile-generate dynamic_dispatch_6.f03 $ rm dynamic_dispatch_6.gcda $ ./a.out $ gfortran -O[0123] -fprofile-use dynamic_dispatch_6.f03
Compiler output: $ gfortran -fprofile-generate dynamic_dispatch_6.f03 $ rm dynamic_dispatch_6.gcda $ ./a.out $ gfortran -fprofile-use dynamic_dispatch_6.f03 dynamic_dispatch_6.f03: In function 'MAIN__': dynamic_dispatch_6.f03:59:0: error: invalid conversion in gimple call struct class$field_p struct class$field_p D.1711 = new_periodic_5th_order (&field_creator); dynamic_dispatch_6.f03:59: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: r162456 - crash r158095 - crash 4.5 r160526 - crash -- Summary: gfortran.dg/dynamic_dispatch_6.f03 ICEs with -fprofile- use 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=45076