From: kargl Date: Wed, 9 Jun 2010 18:32:20 +0000 (+0000) Subject: 2010-06-09 Steven G. Kargl X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8f6f57ca00b8b595b5861ef5cbded593a28359f;p=thirdparty%2Fgcc.git 2010-06-09 Steven G. Kargl * 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 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 0a9361e7f4fd..5e3ffdc52bb6 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,7 @@ +2010-06-09 Steven G. Kargl + + * fortran/symbol.c (check_conflict): Remove an invalid conflict check. + 2010-06-09 Steven G. Kargl * fortran/intrinsic.c (add_functions): Change gfc_check_btest, diff --git a/gcc/fortran/symbol.c b/gcc/fortran/symbol.c index adae49f16062..07802e8349a7 100644 --- a/gcc/fortran/symbol.c +++ b/gcc/fortran/symbol.c @@ -545,7 +545,6 @@ check_conflict (symbol_attribute *attr, const char *name, locus *where) conf (data, function); conf (data, result); conf (data, allocatable); - conf (data, use_assoc); conf (value, pointer) conf (value, allocatable) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 67b09367fe67..125b602c6005 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2010-06-09 Steven G. Kargl + + * gfortran.dg/data_namelist_conflict.f90: New test. + 2010-06-09 Rainer Orth * g++.old-deja/g++.oliva/dwarf2.C: Don't xfail on i386-pc-solaris*. diff --git a/gcc/testsuite/gfortran.dg/data_namelist_conflict.f90 b/gcc/testsuite/gfortran.dg/data_namelist_conflict.f90 new file mode 100644 index 000000000000..b09f167fc7c7 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/data_namelist_conflict.f90 @@ -0,0 +1,26 @@ +! { 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" } }