re PR fortran/13249 (Error when using COMMON)
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
Wed, 9 Jun 2004 13:08:13 +0000 (15:08 +0200)
committerTobias Schlüter <tobi@gcc.gnu.org>
Wed, 9 Jun 2004 13:08:13 +0000 (15:08 +0200)
PR fortran/13249
* gfortran.fortran-torture/compile/name_clash.f90: New test.

From-SVN: r82836

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.fortran-torture/compile/name_clash.f90 [new file with mode: 0644]

index d60039b860756f4f16844939f7cb2a9a79dfe6e1..332e3f0628b1c6008f017c2fb51a237a3309d465 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
+
+       PR fortran/13249
+       * gfortran.fortran-torture/compile/name_clash.f90: New test.
+
 2004-06-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
 
        PR fortran/13372
diff --git a/gcc/testsuite/gfortran.fortran-torture/compile/name_clash.f90 b/gcc/testsuite/gfortran.fortran-torture/compile/name_clash.f90
new file mode 100644 (file)
index 0000000..7386002
--- /dev/null
@@ -0,0 +1,10 @@
+! This is the testcase from PR13249.
+! the two different entities named AN_EXAMPLE shouldn't conflict
+! the real bug is PR15481, we currently (2004/06/09) work around PR13249
+  MODULE MOD
+  INTEGER FOO
+  END
+  PROGRAM MAIN
+  USE MOD
+  COMMON /FOO/ BAR
+  END