https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68560
Bug ID: 68560 Summary: [6 Regression] The test gfortran.dg/shape_8.f90 now fails when compiled with -flto Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: dominiq at lps dot ens.fr CC: hubicka at gcc dot gnu.org Target Milestone: --- The test gfortran.dg/shape_8.f90 now (between r230703 and r230726) fails when compiled with -flto /opt/gcc/_clean/gcc/testsuite/gfortran.dg/shape_8.f90:10:0: warning: type of '_gfortran_shape_4' does not match original declaration [-Wlto-type-mismatch] if (any(shape(x) /= [ 2, 5 ])) call abort /opt/gcc/_clean/gcc/testsuite/gfortran.dg/shape_8.f90:13:0: note: type mismatch in parameter 3 if (any(shape(x,kind=4) /= [ 2, 5 ])) call abort /opt/gcc/_clean/gcc/testsuite/gfortran.dg/shape_8.f90:13:0: note: '_gfortran_shape_4' was previously declared here i.e., the 'kind' argument is not understood as optional (it could be related to pr46846).