https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86365
Bug ID: 86365 Summary: Backported fortran test case gfortran.dg/dec_type_print_2.f03 in r262224 problems Product: gcc Version: 7.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- Is this trying to do something not supported by the fortran compiler in gcc 7? make -k check-gcc RUNTESTFLAGS=dg.exp=gfortran.dg/dec_type_print_2.f03 . . . # of unexpected failures 6 FAIL: gfortran.dg/dec_type_print_2.f03 -O0 (test for excess errors) FAIL: gfortran.dg/dec_type_print_2.f03 -O1 (test for excess errors) FAIL: gfortran.dg/dec_type_print_2.f03 -O2 (test for excess errors) FAIL: gfortran.dg/dec_type_print_2.f03 -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions (test for excess errors) FAIL: gfortran.dg/dec_type_print_2.f03 -O3 -g (test for excess errors) FAIL: gfortran.dg/dec_type_print_2.f03 -Os (test for excess errors) r262224 | foreese | 2018-06-28 11:51:23 -0500 (Thu, 28 Jun 2018) | 15 lines 2018-06-28 Fritz Reese <fritzore...@gmail.com> gcc/testsuite/ChangeLog: PR fortran/82865 Backport from trunk. * gfortran.dg/dec_type_print_2.f03: New testcase. gcc/fortran/ChangeLog: PR fortran/82865 Backport from trunk. * decl.c (gfc_match_type): Refactor and check for PDT declarations. spawn -ignore SIGHUP /home/seurer/gcc/build/gcc-7/gcc/testsuite/gfortran/../../gfortran -B/home/seurer/gcc/build/gcc-7/gcc/testsuite/gfortran/../../ -B/home/seurer/gcc/build/gcc-7/powerpc64-unknown-linux-gnu/./libgfortran/ /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03 -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -fdec -fcheck=all -B/home/seurer/gcc/build/gcc-7/powerpc64-unknown-linux-gnu/./libgfortran/.libs -L/home/seurer/gcc/build/gcc-7/powerpc64-unknown-linux-gnu/./libgfortran/.libs -L/home/seurer/gcc/build/gcc-7/powerpc64-unknown-linux-gnu/./libgfortran/.libs -L/home/seurer/gcc/build/gcc-7/powerpc64-unknown-linux-gnu/./libatomic/.libs -lm -o ./dec_type_print_2.exe /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:12:2: Error: Unclassifiable statement at (1) /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:13:12: Error: Invalid character in name at (1) /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:14:12: Error: Invalid character in name at (1) /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:15:16: Error: Symbol 'i' at (1) already has basic type of INTEGER /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:16:17: Error: Symbol 'a' at (1) has no IMPLICIT type /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:18:5: Error: Expecting END PROGRAM statement at (1) /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:20:13: Error: Derived type 'mytype' at (1) is being used before it is defined /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:21:13: Error: Derived type 'mytype' at (1) is being used before it is defined /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:23:2: Error: Unclassifiable statement at (1) /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:24:2: Error: Unclassifiable statement at (1) /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:25:2: Error: Unclassifiable statement at (1) /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:26:2: Error: Unclassifiable statement at (1) /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:27:2: Error: Unclassifiable statement at (1) /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:28:2: Error: Unclassifiable statement at (1) /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:30:5: Error: Symbol 'z2' at (1) has no IMPLICIT type /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:31:5: Error: Symbol 'z2' at (1) has no IMPLICIT type /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:38:15: Error: Derived type 'mytype' at (1) is being used before it is defined /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:39:12: Error: Symbol 'arg' at (1) has no IMPLICIT type /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:40:20: Error: Symbol 'arg' at (1) has no IMPLICIT type /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:41:24: Error: Symbol 'arg' at (1) has no IMPLICIT type /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:42:17: Error: Symbol 'arg' at (1) has no IMPLICIT type /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:43:20: Error: Symbol 'arg' at (1) has no IMPLICIT type /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:44:24: Error: Symbol 'arg' at (1) has no IMPLICIT type /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:45:8: Error: Unexpected ELSE statement at (1) /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:47:7: Error: Expecting END SUBROUTINE statement at (1) /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:50:15: Error: Derived type 'mytype' at (1) is being used before it is defined /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:51:25: Error: Symbol 'arg' at (1) has no IMPLICIT type /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:52:21: Error: Symbol 'arg' at (1) has no IMPLICIT type /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:55:15: Error: Derived type 'mytype' at (1) is being used before it is defined /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:56:22: Error: Symbol 'arg' at (1) has no IMPLICIT type /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:57:18: Error: Symbol 'arg' at (1) has no IMPLICIT type /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:49:21: Error: Symbol 'arg' at (1) has no IMPLICIT type /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:37:31: Error: Symbol 'arg' at (1) has no IMPLICIT type /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:37:31: Error: Argument 'arg' of pure subroutine 'foo' at (1) must have its INTENT specified or have the VALUE attribute /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:37:31: Error: Argument 'arg' of elemental procedure 'foo' at (1) must have its INTENT specified or have the VALUE attribute /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:54:24: Error: Symbol 'arg' at (1) has no IMPLICIT type /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:17:32: Error: 'chr' at (1) must have constant character length in this context /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:33:13: Error: Symbol 'z' at (1) has no IMPLICIT type /home/seurer/gcc/gcc-7/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:35:17: Error: Symbol 'z2' at (1) has no IMPLICIT type compiler exited with status 1 FAIL: gfortran.dg/dec_type_print_2.f03 -O0 (test for excess errors)