]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR fortran/66707 (Endless compilation on wrong usage of common)
authorDominique d'Humieres <dominiq@lps.ens.fr>
Sat, 30 Jan 2016 14:07:19 +0000 (15:07 +0100)
committerDominique d'Humieres <dominiq@gcc.gnu.org>
Sat, 30 Jan 2016 14:07:19 +0000 (15:07 +0100)
2016-01-30  Dominique d'Humieres  <dominiq@lps.ens.fr>

PR fortran/66707
gfortran.dg/common_23.f90: New test.

From-SVN: r233008

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/common_23.f90 [new file with mode: 0644]

index 8b92463c9966f86fb6a955a8d8ffba54866d348b..fc4232d80ee611916bada0fc543d6ff3720a45e3 100644 (file)
@@ -1,3 +1,8 @@
+2016-01-30  Dominique d'Humieres  <dominiq@lps.ens.fr>
+
+       PR fortran/66707
+       gfortran.dg/common_23.f90: New test.
+
 2016-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 
        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 (file)
index 0000000..3f1f005
--- /dev/null
@@ -0,0 +1,10 @@
+! { dg-do compile }
+!
+! PR fortran/66707
+! Check the compilation on wrong usage of common
+! Contributed by Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de>
+program p
+   integer, pointer :: a
+   common a, a ! { dg-error "is already in a COMMON block" }
+   common a
+end