* gfortran.dg/data_namelist_conflict.f90: New test.
2010-06-09 Steven G. Kargl
* fortran/symbol.c (check_conflict): Remove an invalid conflict check.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160503
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-06-09 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ * fortran/symbol.c (check_conflict): Remove an invalid conflict check.
+
2010-06-09 Steven G. Kargl <kargl@gcc.gnu.org>
* fortran/intrinsic.c (add_functions): Change gfc_check_btest,
conf (data, function);
conf (data, result);
conf (data, allocatable);
- conf (data, use_assoc);
conf (value, pointer)
conf (value, allocatable)
+2010-06-09 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ * gfortran.dg/data_namelist_conflict.f90: New test.
+
2010-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* g++.old-deja/g++.oliva/dwarf2.C: Don't xfail on i386-pc-solaris*.
--- /dev/null
+! { dg-do run }
+! Problem report: http://gcc.gnu.org/ml/fortran/2010-05/msg00139.html
+!
+module globals
+ implicit none
+ integer j
+ data j/1/
+end module
+
+program test
+ use globals
+ implicit none
+ character(len=80) str
+ integer :: i
+ data i/0/
+ namelist /nl/i,j
+ open(unit=10,status='scratch')
+ write(10,nl)
+ i = 42
+ j = 42
+ rewind(10)
+ read(10,nl)
+ if (i /= 0 .or. j /= 1) call abort
+ close(10)
+end program
+! { dg-final { cleanup-modules "globals" } }