https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899
Dominique d'Humieres changed:
What|Removed |Added
Status|REOPENED|RESOLVED
Resolution|---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899
Dominique d'Humieres dominiq at lps dot ens.fr changed:
What|Removed |Added
Status|WAITING |RESOLVED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899
Tobias Burnus burnus at gcc dot gnu.org changed:
What|Removed |Added
Status|RESOLVED|REOPENED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899
--- Comment #16 from Dominique d'Humieres dominiq at lps dot ens.fr ---
(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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899
Jerry DeLisle jvdelisle at gcc dot gnu.org changed:
What|Removed |Added
AssignedTo|jvdelisle at gcc dot|unassigned at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899
Jerry DeLisle jvdelisle at gcc dot gnu.org changed:
What|Removed |Added
Status|ASSIGNED|WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899
--- Comment #11 from Jerry DeLisle jvdelisle at gcc dot gnu.org 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=gccview=revrev=166461
Log:
2010-11-08 Jerry
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899
--- Comment #7 from Jerry DeLisle jvdelisle at gcc dot gnu.org 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=gccview=revrev=166252
Log:
2010-11-03 Jerry
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899
--- Comment #8 from Jerry DeLisle jvdelisle at gcc dot gnu.org 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=gccview=revrev=166253
Log:
2010-11-03 Jerry
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899
--- Comment #9 from Tobias Burnus burnus at gcc dot gnu.org 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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899
--- Comment #10 from Jerry DeLisle jvdelisle at gcc dot gnu.org 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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43899
--- Comment #6 from Jerry DeLisle jvdelisle at gcc dot gnu.org 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
--- 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.
--- 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
--- 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 error:
--- 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
--- 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
17 matches
Mail list logo