[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

2015-10-10 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899 Dominique d'Humieres changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

2013-06-20 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899 --- Comment #16 from Dominique d'Humieres --- (In reply to Tobias Burnus from comment #15) > (In reply to Jerry DeLisle from comment #12) > > Remaining [...] is to warn on an unused namelist. I think this will involve > > marking namelists as use

[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

2013-06-20 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899 Tobias Burnus changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|WONTFIX

[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

2013-06-20 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899 Dominique d'Humieres changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

2010-11-08 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899 Jerry DeLisle changed: What|Removed |Added Status|ASSIGNED|WAITING CC|

[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

2010-11-08 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899 Jerry DeLisle changed: What|Removed |Added AssignedTo|jvdelisle at gcc dot|unassigned at gcc dot |

[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

2010-11-08 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899 --- Comment #11 from Jerry DeLisle 2010-11-09 00:08:24 UTC --- Author: jvdelisle Date: Tue Nov 9 00:08:20 2010 New Revision: 166461 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166461 Log: 2010-11-08 Jerry DeLisle PR fortran/43

[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

2010-11-03 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899 --- Comment #10 from Jerry DeLisle 2010-11-03 17:47:51 UTC --- This patchlet gets rid of the bogus warning. All that remains is to check that namelists are used or not. Also note that we do not now check to see if commons are used either. Ind

[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

2010-11-03 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899 --- Comment #9 from Tobias Burnus 2010-11-03 15:44:35 UTC --- The patch in comment 7 and 8 adds a run-time warning (with -fcheck=bounds) if a string in a namelist gets truncated. TODO: Comment 0, namely: Don't warn that a variable is unused, if

[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

2010-11-03 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899 --- Comment #8 from Jerry DeLisle 2010-11-03 15:27:53 UTC --- Author: jvdelisle Date: Wed Nov 3 15:27:48 2010 New Revision: 166253 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166253 Log: 2010-11-03 Jerry DeLisle PR libgfortran

[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

2010-11-03 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899 --- Comment #7 from Jerry DeLisle 2010-11-03 15:22:29 UTC --- Author: jvdelisle Date: Wed Nov 3 15:22:25 2010 New Revision: 166252 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166252 Log: 2010-11-03 Jerry DeLisle PR libgfortran

[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

2010-11-02 Thread jvdelisle at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899 --- Comment #6 from Jerry DeLisle 2010-11-03 04:29:19 UTC --- OK, I got back to this. I will submit a patch shortly. I now do this: At line 9 of file pr43899.f90 (unit = 7, file = 'example.nml') Fortran runtime warning: Namelist object 'nml_st

[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

2010-05-03 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2010-05-04 05:53 --- (In reply to comment #4) > What about this? > > $ gfc -fbounds-check pr43899.f90 > $ ./a.out > &NMLIST NML_STRING='123456789' / > At line 9 of file pr43899.f90 (unit = 7, file = 'example.nml') > Fortran runtime

[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

2010-05-03 Thread jvdelisle at gcc dot gnu dot org
--- Comment #4 from jvdelisle at gcc dot gnu dot org 2010-05-04 04:11 --- What about this? $ gfc -fbounds-check pr43899.f90 $ ./a.out &NMLIST NML_STRING='123456789' / At line 9 of file pr43899.f90 (unit = 7, file = 'example.nml') Fortran runtime error: Namelist object 'nml_string

[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

2010-05-03 Thread jvdelisle at gcc dot gnu dot org
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2010-05-04 01:56 --- What I am thinking of is a warning if a quoted string is terminated by an end-of-line and there is no closing quote. I would like to put this behind -Wcharacter-truncation which will be picked up with -Wall. Let'

[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

2010-04-26 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2010-04-26 20:16 --- (In reply to comment #1) > Well in a sense it is unused. Well, but only in a sense - in the example a value is assigned to and then printed ... > Regardless, adding a warning for the truncated > string, the real iss

[Bug fortran/43899] Wrong unused-variable warning with NAMELISTs

2010-04-26 Thread jvdelisle at gcc dot gnu dot org
--- Comment #1 from jvdelisle at gcc dot gnu dot org 2010-04-26 19:05 --- Well in a sense it is unused. Regardless, adding a warning for the truncated string, the real issue, is straightforward and I will do so. -- jvdelisle at gcc dot gnu dot org changed: What|Remo