https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88254
Bug ID: 88254 Summary: Support construct name for CHANGE TEAM & END TEAM Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: weeks at iastate dot edu Target Milestone: --- The Fortran 2018 CHANGE TEAM and END TEAM statements should support a construct name. Support is current lacking in gfortran 8.2.0; see the example below (and also example C.6.8 from the N2146 draft of the Fortran 2018 standard). ======================================================= $ cat team_construct_name.f90 program test_team_construct_name use, intrinsic :: iso_fortran_env, only: team_type implicit none type(team_type) :: team form team (1, team) team_construct_name: change team(team) if (.true.) exit team_construct_name error stop 'fail' end team team_construct_name write(*,*) 'pass' end program $ gfortran-mp-8 team_construct_name.f90 team_construct_name.f90:9:3: team_construct_name: change team(team) 1 Error: Unclassifiable statement at (1) team_construct_name.f90:10:42: if (.true.) exit team_construct_name 1 Error: Name 'team_construct_name' in EXIT statement at (1) is unknown team_construct_name.f90:12:12: end team team_construct_name 1 Error: Unclassifiable statement at (1) $ gfortran-mp-8 -v Using built-in specs. COLLECT_GCC=gfortran-mp-8 COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin17/8.2.0/lto-wrapper Target: x86_64-apple-darwin17 Configured with: /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_gcc8/gcc8/work/gcc-8.2.0/configure --prefix=/opt/local --build=x86_64-apple-darwin17 --enable-languages=c,c++,objc,obj-c++,lto,fortran --libdir=/opt/local/lib/gcc8 --includedir=/opt/local/include/gcc8 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-8 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-8 --with-gxx-include-dir=/opt/local/include/gcc8/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-isl=/opt/local --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-build-config=bootstrap-debug --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --disable-tls --with-pkgversion='MacPorts gcc8 8.2.0_3' Thread model: posix gcc version 8.2.0 (MacPorts gcc8 8.2.0_3) =======================================================