[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-28 Thread jvdelisle at gcc dot gnu dot org
--- Comment #33 from jvdelisle at gcc dot gnu dot org 2008-10-29 04:45 --- Subject: Bug 37707 Author: jvdelisle Date: Wed Oct 29 04:44:15 2008 New Revision: 141420 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=141420 Log: 2008-10-28 Jerry DeLisle [EMAIL PROTECTED] PR

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-28 Thread jvdelisle at gcc dot gnu dot org
--- Comment #34 from jvdelisle at gcc dot gnu dot org 2008-10-29 04:47 --- Fixed on 4.3, closing -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-28 Thread jvdelisle at gcc dot gnu dot org
--- Comment #35 from jvdelisle at gcc dot gnu dot org 2008-10-29 04:48 --- Subject: Bug 37707 Author: jvdelisle Date: Wed Oct 29 04:47:20 2008 New Revision: 141421 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=141421 Log: 2008-10-28 Jerry DeLisle [EMAIL PROTECTED] PR

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-23 Thread burnus at gcc dot gnu dot org
--- Comment #32 from burnus at gcc dot gnu dot org 2008-10-23 06:18 --- (In reply to comment #31) Fixed on trunk, backport to 4.3? I think it is simple enough to be OK. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37707

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-22 Thread toon at moene dot indiv dot nluug dot nl
--- Comment #28 from toon at moene dot indiv dot nluug dot nl 2008-10-22 08:28 --- Jerry, do you think your patch can be applied and this bug closed ? As I wrote, it fixed the original problem from which I constructed the two test cases. --

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-22 Thread jvdelisle at gcc dot gnu dot org
--- Comment #29 from jvdelisle at gcc dot gnu dot org 2008-10-23 02:32 --- Subject: Bug 37707 Author: jvdelisle Date: Thu Oct 23 02:31:00 2008 New Revision: 141317 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=141317 Log: 2008-10-22 Jerry DeLisle [EMAIL PROTECTED] PR

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-22 Thread jvdelisle at gcc dot gnu dot org
--- Comment #30 from jvdelisle at gcc dot gnu dot org 2008-10-23 02:43 --- Subject: Bug 37707 Author: jvdelisle Date: Thu Oct 23 02:42:36 2008 New Revision: 141318 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=141318 Log: 2008-10-22 Jerry DeLisle [EMAIL PROTECTED] PR

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-22 Thread jvdelisle at gcc dot gnu dot org
--- Comment #31 from jvdelisle at gcc dot gnu dot org 2008-10-23 02:50 --- Fixed on trunk, backport to 4.3? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37707

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-19 Thread burnus at gcc dot gnu dot org
--- Comment #22 from burnus at gcc dot gnu dot org 2008-10-19 09:44 --- (In reply to comment #19) Warning: CHARACTER expression at (1) is being truncated (222/200) Tobias, you are right - the string is too short - 250 characters should do, however, and I get the same error. How did

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-19 Thread jvdelisle at gcc dot gnu dot org
--- Comment #23 from jvdelisle at gcc dot gnu dot org 2008-10-19 15:29 --- Subject: Bug 37707 Author: jvdelisle Date: Sun Oct 19 15:28:25 2008 New Revision: 141227 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=141227 Log: 2008-10-19 Jerry DeLisle [EMAIL PROTECTED] PR

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-19 Thread jvdelisle at gcc dot gnu dot org
--- Comment #24 from jvdelisle at gcc dot gnu dot org 2008-10-19 15:31 --- Subject: Bug 37707 Author: jvdelisle Date: Sun Oct 19 15:30:32 2008 New Revision: 141228 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=141228 Log: 2008-10-19 Jerry DeLisle [EMAIL PROTECTED] PR

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-19 Thread jvdelisle at gcc dot gnu dot org
--- Comment #25 from jvdelisle at gcc dot gnu dot org 2008-10-19 15:39 --- (In reply to comment #22) default: - dtp-u.p.nml_delim = '\0'; + dtp-u.p.nml_delim = ''; wouldn't it be easier/faster to simply remove the whole switch and use simply dtp-u.p.nml_delim = '';

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-19 Thread toon at moene dot indiv dot nluug dot nl
--- Comment #26 from toon at moene dot indiv dot nluug dot nl 2008-10-19 16:11 --- The patch works for my case, Please be careful with the namelist_18,f90 test case - I can't off-hand say whether it's right or (an extension). Cheers, --

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-19 Thread jvdelisle at gcc dot gnu dot org
--- Comment #27 from jvdelisle at gcc dot gnu dot org 2008-10-19 18:16 --- The namelist_18.f90 test change is because we are now defaulting to a quote delimiter. We do not write a namelist without character string delimiters. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37707

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-18 Thread toon at moene dot indiv dot nluug dot nl
--- Comment #13 from toon at moene dot indiv dot nluug dot nl 2008-10-18 08:43 --- Unfortunately, while the original test case has been solved, the original problem that led me to file this bug report hasn't been ... Here's a failing example closer to the original source: TYPE

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-18 Thread toon at moene dot indiv dot nluug dot nl
--- Comment #14 from toon at moene dot indiv dot nluug dot nl 2008-10-18 08:46 --- Created an attachment (id=16514) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16514action=view) New Failing Example. This a more complicated example that still fails after Jerry's fix for the

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-18 Thread toon at moene dot indiv dot nluug dot nl
--- Comment #15 from toon at moene dot indiv dot nluug dot nl 2008-10-18 08:47 --- Sorry, source code of new example got mangled; I created an attachment (nl4.f90) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37707

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-18 Thread burnus at gcc dot gnu dot org
--- Comment #16 from burnus at gcc dot gnu dot org 2008-10-18 14:33 --- character*200 :: l = NAMINTERP atmkey%ppp = 076,058,062,079, atmkey%nnn = 0 1 Warning: CHARACTER expression at (1) is being truncated (222/200) This namelist poses really a challenge: - NAG

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-18 Thread burnus at gcc dot gnu dot org
--- Comment #17 from burnus at gcc dot gnu dot org 2008-10-18 14:53 --- The problem seems to be that atmkey%name = list of quoted strings reads also OUTGEO%NLEV=10 as string. Can you try: open(file where the namelist is, delim='quote') in the real program? That unfortunately does not

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-18 Thread burnus at gcc dot gnu dot org
--- Comment #18 from burnus at gcc dot gnu dot org 2008-10-18 15:12 --- I think your program is valid. For tag = list of strings in a namelist the quotes are required and delim= is ignored for namelist read/write. See: 10.10.1.3 Namelist group object list items [...] When the next

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-18 Thread toon at moene dot indiv dot nluug dot nl
--- Comment #19 from toon at moene dot indiv dot nluug dot nl 2008-10-18 15:33 --- character*200 :: l = NAMINTERP atmkey%ppp = 076,058,062,079, atmkey%nnn = 0 1 Warning: CHARACTER expression at (1) is being truncated (222/200) Tobias, you are right - the string

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-18 Thread jvdelisle at gcc dot gnu dot org
--- Comment #20 from jvdelisle at gcc dot gnu dot org 2008-10-18 17:46 --- There are a few problems going on here. When writing a namelist with no delim= specified, we should default to a quote. That is trivial. Then, we also need to enable finding a namelist object name vs a

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-18 Thread jvdelisle at gcc dot gnu dot org
--- Comment #21 from jvdelisle at gcc dot gnu dot org 2008-10-18 21:48 --- Created an attachment (id=16515) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16515action=view) Proposed patch for this second test case. Toon and Tobias: Please try this attached patch. This fixes

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-17 Thread jvdelisle at gcc dot gnu dot org
--- Comment #11 from jvdelisle at gcc dot gnu dot org 2008-10-18 05:25 --- Subject: Bug 37707 Author: jvdelisle Date: Sat Oct 18 05:23:47 2008 New Revision: 141207 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=141207 Log: 2008-10-17 Jerry DeLisle [EMAIL PROTECTED] PR

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-17 Thread jvdelisle at gcc dot gnu dot org
--- Comment #12 from jvdelisle at gcc dot gnu dot org 2008-10-18 05:36 --- Ignore comment #11. I got wrong PR number in Changelog. Should have been 37863. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37707

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-09 Thread dominiq at lps dot ens dot fr
--- Comment #7 from dominiq at lps dot ens dot fr 2008-10-09 09:27 --- (In reply to comment #6) On i686-apple-darwin9 I get: [ibook-dhum] f90/bug% gfc pr37707.f90 [ibook-dhum] f90/bug% a.out 87 88 89 97 98 99 NAMLIS A(1)%M=

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-09 Thread burnus at gcc dot gnu dot org
--- Comment #8 from burnus at gcc dot gnu dot org 2008-10-09 13:31 --- (In reply to comment #6) Tobias, should A(3)%M not be 89?? Yes. I realized too late that I pasted the output of a slightly different program, which I used during testing. In any case today's build gives the same

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-09 Thread pault at gcc dot gnu dot org
--- Comment #6 from pault at gcc dot gnu dot org 2008-10-09 09:15 --- (In reply to comment #1) NAMLIS A(1)%M = 1, A(1)%N = 5, A(2)%M = 2, A(2)%N = 6, A(3)%M = 5, A(3)%N = 99 /

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-09 Thread jvdelisle at gcc dot gnu dot org
--- Comment #9 from jvdelisle at gcc dot gnu dot org 2008-10-10 02:11 --- Subject: Bug 37707 Author: jvdelisle Date: Fri Oct 10 02:10:14 2008 New Revision: 141016 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=141016 Log: 2008-10-08 Jerry DeLisle [EMAIL PROTECTED] PR

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-09 Thread jvdelisle at gcc dot gnu dot org
--- Comment #10 from jvdelisle at gcc dot gnu dot org 2008-10-10 02:14 --- This is fixed on trunk. I think I will back port this to 4.3 since the bug does result in failing in valid namelists. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37707

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-08 Thread jvdelisle at gcc dot gnu dot org
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2008-10-09 02:40 --- The following simple patch fixes this. I will commit under the obvious and simple rule. (Obvious once you spend several hours studying it to see what is going wrong!) Index: io/list_read.c

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-08 Thread jvdelisle at gcc dot gnu dot org
--- Comment #5 from jvdelisle at gcc dot gnu dot org 2008-10-09 04:16 --- Subject: Bug 37707 Author: jvdelisle Date: Thu Oct 9 04:14:48 2008 New Revision: 140997 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=140997 Log: 2008-10-08 Jerry DeLisle [EMAIL PROTECTED] PR

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-08 Thread jvdelisle at gcc dot gnu dot org
--- Comment #4 from jvdelisle at gcc dot gnu dot org 2008-10-09 04:04 --- Subject: Bug 37707 Author: jvdelisle Date: Thu Oct 9 04:02:35 2008 New Revision: 140995 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=140995 Log: 2008-10-08 Jerry DeLisle [EMAIL PROTECTED] PR

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-01 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2008-10-01 21:42 --- Jerry, that sounds like something for you. I think Toon is right and ifort 10.1 prints (using a file as internal I/O does not work): 87 88 89 97 98 99 NAMLIS

[Bug libfortran/37707] Namelist read of array of derived type incorrect

2008-10-01 Thread jvdelisle at gcc dot gnu dot org
--- Comment #2 from jvdelisle at gcc dot gnu dot org 2008-10-02 01:46 --- I am investigating. -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added