* [Bug fortran/21432] Another code sample that gfortran dies on
2005-05-07 1:53 [Bug fortran/21432] New: Another code sample that gfortran dies on joe at confucius dot gnacademy dot org
@ 2005-05-07 1:54 ` joe at confucius dot gnacademy dot org
2005-05-07 3:26 ` kargl at gcc dot gnu dot org
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: joe at confucius dot gnacademy dot org @ 2005-05-07 1:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From joe at confucius dot gnacademy dot org 2005-05-07 01:54 -------
Created an attachment (id=8833)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8833&action=view)
code sample that breaks gfortran
code sample that breaks gfortran
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21432
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/21432] Another code sample that gfortran dies on
2005-05-07 1:53 [Bug fortran/21432] New: Another code sample that gfortran dies on joe at confucius dot gnacademy dot org
2005-05-07 1:54 ` [Bug fortran/21432] " joe at confucius dot gnacademy dot org
@ 2005-05-07 3:26 ` kargl at gcc dot gnu dot org
2005-05-07 3:43 ` [Bug fortran/21432] gfortran does not support printing of namelists joe at confucius dot gnacademy dot org
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-05-07 3:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From kargl at gcc dot gnu dot org 2005-05-07 03:26 -------
No offense intended, but a 1085 line source file is fairly
useless to us. In particular, NAG's F95 compiler can't
compile this code. In addition, a single print statement
without additional context (such as the declaration of cor)
is also useless. Can you cut this down to a self contained
example?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21432
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/21432] gfortran does not support printing of namelists
2005-05-07 1:53 [Bug fortran/21432] New: Another code sample that gfortran dies on joe at confucius dot gnacademy dot org
2005-05-07 1:54 ` [Bug fortran/21432] " joe at confucius dot gnacademy dot org
2005-05-07 3:26 ` kargl at gcc dot gnu dot org
@ 2005-05-07 3:43 ` joe at confucius dot gnacademy dot org
2005-05-07 3:45 ` joe at confucius dot gnacademy dot org
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: joe at confucius dot gnacademy dot org @ 2005-05-07 3:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From joe at confucius dot gnacademy dot org 2005-05-07 03:43 -------
Sorry for the spew. The code is generated by a preprocessor and I didn't
realize how large it would end up.
The bug is that gfortran apparently does not support printing of namelists. I
don't know if this is in the fortran standard or not, but it is a very common
compiler extension, and it is one that is hugely difficult to work around.
I've loaded up a new file that compiles with ifort.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|Another code sample that |gfortran does not support
|gfortran dies on |printing of namelists
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21432
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/21432] gfortran does not support printing of namelists
2005-05-07 1:53 [Bug fortran/21432] New: Another code sample that gfortran dies on joe at confucius dot gnacademy dot org
` (2 preceding siblings ...)
2005-05-07 3:43 ` [Bug fortran/21432] gfortran does not support printing of namelists joe at confucius dot gnacademy dot org
@ 2005-05-07 3:45 ` joe at confucius dot gnacademy dot org
2005-05-07 4:02 ` kargl at gcc dot gnu dot org
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: joe at confucius dot gnacademy dot org @ 2005-05-07 3:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From joe at confucius dot gnacademy dot org 2005-05-07 03:45 -------
Created an attachment (id=8834)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8834&action=view)
better file
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #8833 is|0 |1
obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21432
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/21432] gfortran does not support printing of namelists
2005-05-07 1:53 [Bug fortran/21432] New: Another code sample that gfortran dies on joe at confucius dot gnacademy dot org
` (3 preceding siblings ...)
2005-05-07 3:45 ` joe at confucius dot gnacademy dot org
@ 2005-05-07 4:02 ` kargl at gcc dot gnu dot org
2005-05-07 4:19 ` joe at confucius dot gnacademy dot org
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: kargl at gcc dot gnu dot org @ 2005-05-07 4:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From kargl at gcc dot gnu dot org 2005-05-07 04:02 -------
Thanks for cutting it down! The code is nonstandard according to
both the NAG compiler and Lahey's web base source code checker.
Lahey will compile the code if one does not ask for strict conformance
to the standard. Additionally, g77 compiles the code, so technically
it is a regression.
I've changed this bug to an enhancement request. Perhaps, Paul Thomas
who just recently implemented the namelist features can fix this soon,
but we do have numerous conformance bugs on our plate.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21432
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/21432] gfortran does not support printing of namelists
2005-05-07 1:53 [Bug fortran/21432] New: Another code sample that gfortran dies on joe at confucius dot gnacademy dot org
` (4 preceding siblings ...)
2005-05-07 4:02 ` kargl at gcc dot gnu dot org
@ 2005-05-07 4:19 ` joe at confucius dot gnacademy dot org
2005-05-07 15:55 ` tobi at gcc dot gnu dot org
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: joe at confucius dot gnacademy dot org @ 2005-05-07 4:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From joe at confucius dot gnacademy dot org 2005-05-07 04:19 -------
No problem. First things first :-) :-) :-)
In case you are wondering the bug reports I've been submitting come from trying
to compile a 20000 line iron core collapse supernova simulation. It's the type
of nasty science code that you see a lot in the field, but it has been ported to
enough different platforms so that the bugs it picks up aren't too obscure.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21432
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/21432] gfortran does not support printing of namelists
2005-05-07 1:53 [Bug fortran/21432] New: Another code sample that gfortran dies on joe at confucius dot gnacademy dot org
` (5 preceding siblings ...)
2005-05-07 4:19 ` joe at confucius dot gnacademy dot org
@ 2005-05-07 15:55 ` tobi at gcc dot gnu dot org
2005-05-17 13:35 ` tkoenig at gcc dot gnu dot org
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-05-07 15:55 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-05-07 15:55:06
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21432
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/21432] gfortran does not support printing of namelists
2005-05-07 1:53 [Bug fortran/21432] New: Another code sample that gfortran dies on joe at confucius dot gnacademy dot org
` (6 preceding siblings ...)
2005-05-07 15:55 ` tobi at gcc dot gnu dot org
@ 2005-05-17 13:35 ` tkoenig at gcc dot gnu dot org
2005-08-03 12:31 ` paulthomas2 at wanadoo dot fr
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2005-05-17 13:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tkoenig at gcc dot gnu dot org 2005-05-17 13:32 -------
(In reply to comment #3)
> The bug is that gfortran apparently does not support printing of namelists. I
> don't know if this is in the fortran standard or not, but it is a very common
> compiler extension, and it is one that is hugely difficult to work around.
Sorry if I appear dense, but where is the problem in changing
namelist /cor/ a
print cor
to
namelist /cor/ a
write (*,cor)
?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21432
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/21432] gfortran does not support printing of namelists
2005-05-07 1:53 [Bug fortran/21432] New: Another code sample that gfortran dies on joe at confucius dot gnacademy dot org
` (7 preceding siblings ...)
2005-05-17 13:35 ` tkoenig at gcc dot gnu dot org
@ 2005-08-03 12:31 ` paulthomas2 at wanadoo dot fr
2005-08-14 16:16 ` cvs-commit at gcc dot gnu dot org
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: paulthomas2 at wanadoo dot fr @ 2005-08-03 12:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From paulthomas2 at wanadoo dot fr 2005-08-03 12:31 -------
> Sorry if I appear dense, but where is the problem in changing
> namelist /cor/ a
> print cor
> to
> namelist /cor/ a
> write (*,cor)
> ?
Or even.... horrible, horrible, horrible
real x, y, z
namelist /a/ x, y, z
x = 1
y = 2
z = 3
print (*,a)
end
works.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21432
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/21432] gfortran does not support printing of namelists
2005-05-07 1:53 [Bug fortran/21432] New: Another code sample that gfortran dies on joe at confucius dot gnacademy dot org
` (8 preceding siblings ...)
2005-08-03 12:31 ` paulthomas2 at wanadoo dot fr
@ 2005-08-14 16:16 ` cvs-commit at gcc dot gnu dot org
2005-08-14 18:45 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-14 16:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-14 16:15 -------
Subject: Bug 21432
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pault@gcc.gnu.org 2005-08-14 16:15:46
Modified files:
gcc/fortran : io.c ChangeLog
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gfortran.dg: namelist_print_1.f namelist_print_2.f
Log message:
2005-08-14 Paul Thomas <pault@gcc.gnu.org>
PR fortran/21432.
* io.c (match_io): Add code to implement PRINT namelist.
2005-08-14 Paul Thomas <pault@gcc.gnu.org>
PR fortran/21432.
* gfortran.dg/namelist_print_1.f: New test of functionality of
PRINT namelist.
* gfortran.dg/namelist_print_2.f: New test to check that PRINT
namelist generates error with -std=f95.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/io.c.diff?cvsroot=gcc&r1=1.29&r2=1.30
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.521&r2=1.522
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_print_1.f.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_print_2.f.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5920&r2=1.5921
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21432
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/21432] gfortran does not support printing of namelists
2005-05-07 1:53 [Bug fortran/21432] New: Another code sample that gfortran dies on joe at confucius dot gnacademy dot org
` (9 preceding siblings ...)
2005-08-14 16:16 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-14 18:45 ` cvs-commit at gcc dot gnu dot org
2005-08-14 19:30 ` pault at gcc dot gnu dot org
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-14 18:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-14 18:45 -------
Subject: Bug 21432
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: pault@gcc.gnu.org 2005-08-14 18:45:42
Modified files:
gcc/fortran : io.c ChangeLog
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gfortran.dg: namelist_print_1.f namelist_print_2.f
Log message:
2005-08-14 Paul Thomas <pault@gcc.gnu.org>
PR fortran/21432.
* io.c (match_io): Add code to implement PRINT namelist.
2005-08-14 Paul Thomas <pault@gcc.gnu.org>
PR fortran/21432.
* gfortran.dg/namelist_print_1.f: New test of functionality of
PRINT namelist.
* gfortran.dg/namelist_print_2.f: New test to check that PRINT
namelist generates error with -std=f95.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/io.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.19.10.8&r2=1.19.10.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.105&r2=1.335.2.106
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_print_1.f.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/namelist_print_2.f.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.334&r2=1.5084.2.335
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21432
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/21432] gfortran does not support printing of namelists
2005-05-07 1:53 [Bug fortran/21432] New: Another code sample that gfortran dies on joe at confucius dot gnacademy dot org
` (10 preceding siblings ...)
2005-08-14 18:45 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-14 19:30 ` pault at gcc dot gnu dot org
2005-08-14 21:43 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pault at gcc dot gnu dot org @ 2005-08-14 19:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pault at gcc dot gnu dot org 2005-08-14 19:30 -------
Fixed on mainline and 4.02
There's just the documentation to do, now.
Paul T
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21432
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/21432] gfortran does not support printing of namelists
2005-05-07 1:53 [Bug fortran/21432] New: Another code sample that gfortran dies on joe at confucius dot gnacademy dot org
` (11 preceding siblings ...)
2005-08-14 19:30 ` pault at gcc dot gnu dot org
@ 2005-08-14 21:43 ` cvs-commit at gcc dot gnu dot org
2005-08-14 21:46 ` cvs-commit at gcc dot gnu dot org
2005-08-23 1:54 ` pinskia at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-14 21:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-14 21:43 -------
Subject: Bug 21432
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pault@gcc.gnu.org 2005-08-14 21:43:14
Modified files:
gcc/fortran : gfortran.texi ChangeLog
Log message:
2005-08-14 Paul Thomas <pault@gcc.gnu.org>
PR fortran/21432.
* gfortran.texi: Document PRINT namelist.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/gfortran.texi.diff?cvsroot=gcc&r1=1.21&r2=1.22
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.522&r2=1.523
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21432
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/21432] gfortran does not support printing of namelists
2005-05-07 1:53 [Bug fortran/21432] New: Another code sample that gfortran dies on joe at confucius dot gnacademy dot org
` (12 preceding siblings ...)
2005-08-14 21:43 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-14 21:46 ` cvs-commit at gcc dot gnu dot org
2005-08-23 1:54 ` pinskia at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-14 21:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-14 21:46 -------
Subject: Bug 21432
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: pault@gcc.gnu.org 2005-08-14 21:46:52
Modified files:
gcc/fortran : gfortran.texi ChangeLog
Log message:
2005-08-14 Paul Thomas <pault@gcc.gnu.org>
PR fortran/21432.
* gfortran.texi: Document PRINT namelist.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/gfortran.texi.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.10.8.6&r2=1.10.8.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.106&r2=1.335.2.107
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21432
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/21432] gfortran does not support printing of namelists
2005-05-07 1:53 [Bug fortran/21432] New: Another code sample that gfortran dies on joe at confucius dot gnacademy dot org
` (13 preceding siblings ...)
2005-08-14 21:46 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-23 1:54 ` pinskia at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-23 1:54 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21432
^ permalink raw reply [flat|nested] 16+ messages in thread