From d6c3a5392038022e5b236a244a9b33210875383d Mon Sep 17 00:00:00 2001 From: Dominique d'Humieres Date: Sat, 30 Jan 2016 15:07:19 +0100 Subject: [PATCH] re PR fortran/66707 (Endless compilation on wrong usage of common) 2016-01-30 Dominique d'Humieres PR fortran/66707 gfortran.dg/common_23.f90: New test. From-SVN: r233008 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gfortran.dg/common_23.f90 | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/common_23.f90 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8b92463..fc4232d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-01-30 Dominique d'Humieres + + PR fortran/66707 + gfortran.dg/common_23.f90: New test. + 2016-01-29 Bill Schmidt PR target/65546 diff --git a/gcc/testsuite/gfortran.dg/common_23.f90 b/gcc/testsuite/gfortran.dg/common_23.f90 new file mode 100644 index 0000000..3f1f005 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/common_23.f90 @@ -0,0 +1,10 @@ +! { dg-do compile } +! +! PR fortran/66707 +! Check the compilation on wrong usage of common +! Contributed by Gerhard Steinmetz +program p + integer, pointer :: a + common a, a ! { dg-error "is already in a COMMON block" } + common a +end -- 2.7.4