[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2022-07-02 Thread harper at msor dot vuw.ac.nz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #25 from harper at msor dot vuw.ac.nz --- I received your patch but I have no idea how to install it - I have been using Fortran off and on since 1963 but I am not a systems programmer. My version of gfortran is gcc version 9.4.0

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2022-06-03 Thread harper at msor dot vuw.ac.nz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #23 from harper at msor dot vuw.ac.nz --- Given what "undefined" means in Fortran, I see no bug now. On Fri, 3 Jun 2022, jvdelisle at gcc dot gnu.org wrote: > Date: Fri, 3 Jun 2022 21:04:22 + > From: jvde

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2022-06-03 Thread harper at msor dot vuw.ac.nz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #21 from harper at msor dot vuw.ac.nz --- I have only one problem here, and it's with the f2018 standard seeming to contradict itself in two places that both apply to this program. 12.11.1 begins "The set of input/ou

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2022-05-18 Thread harper at msor dot vuw.ac.nz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #19 from harper at msor dot vuw.ac.nz --- Thank you. To make the outputs from my test program testdecimal.f90 easier to compare when using different compilers, and to clarify where a reading error happened, I have revised the

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2022-05-16 Thread harper at msor dot vuw.ac.nz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #17 from harper at msor dot vuw.ac.nz --- On comparing that with ifort's result I think that the only remaining bug is that if decimal='comma' then '.' is neither a decimal symbol nor a separator (see f201

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2022-05-15 Thread harper at msor dot vuw.ac.nz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #16 from harper at msor dot vuw.ac.nz --- I have now used ifort on my latest test program, which you should already have, in the hope that it helps you. It printed this: john@johns-laptop:~/Jfh$ ifort testiostat4.f90 Compiling

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2022-05-15 Thread harper at msor dot vuw.ac.nz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #15 from harper at msor dot vuw.ac.nz --- Thank you. My test program failed to distinguish some bad cases from good cases; a revised version of the program is below. The important change was making both elements of x be 666 just

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2022-05-15 Thread harper at msor dot vuw.ac.nz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #11 from harper at msor dot vuw.ac.nz --- Thank you Jerry. Commas as separators with DECIMAL = 'comma' may be trickier because commas then do the job that decimal points normally do, and they cannot act as separators.

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2022-05-15 Thread harper at msor dot vuw.ac.nz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #8 from harper at msor dot vuw.ac.nz --- Thank you. Unfortunately I think you found some but not all of what the standard says about semicolons as separators. You will recall that my original bug report had a program compiled with

[Bug fortran/105473] semicolon allowed when list-directed read integer with decimal='point'

2022-05-04 Thread harper at msor dot vuw.ac.nz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105473 --- Comment #3 from harper at msor dot vuw.ac.nz --- Thank you. Of course the program did not compile with -std=f95 because there was no decimal='point' option then. But with -std=f2003 or f2008 or f2018, and with or without n = 999

[Bug fortran/40196] [F03] [F08] Type parameter inquiry (str%len, a%kind) and Complex parts (z%re, z%im)

2018-11-19 Thread harper at msor dot vuw.ac.nz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40196 --- Comment #13 from harper at msor dot vuw.ac.nz --- OK On Mon, 19 Nov 2018, marxin at gcc dot gnu.org wrote: > Date: Mon, 19 Nov 2018 11:51:27 + > From: marxin at gcc dot gnu.org > To: John Harper > Subject: [Bug fortran

[Bug fortran/88052] Format contravening f2008 constraint C1002 permitted

2018-11-18 Thread harper at msor dot vuw.ac.nz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88052 --- Comment #5 from harper at msor dot vuw.ac.nz --- The error I found is not just violating a constraint in f2008 or above. The same constraint with different wording is in f2003, f95 and f90. If you want to allow any constraint violations I

[Bug fortran/82709] f2008 complex%re and %im not yet implemented

2017-10-26 Thread harper at msor dot vuw.ac.nz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82709 --- Comment #2 from harper at msor dot vuw.ac.nz --- Apologies - I did not find bug 40196 when I was looking for possible duplicates of my bug 82709. On Tue, 24 Oct 2017, dominiq at lps dot ens.fr wrote: > Date: Tue, 24 Oct 2017 23:51:55 +0

[Bug fortran/82243] -fcheck=bounds not checking, and behaving differently with different real kinds

2017-09-19 Thread harper at msor dot vuw.ac.nz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82243 --- Comment #2 from harper at msor dot vuw.ac.nz --- Since reporting the bug yesterday I have found that the bug requires the integer n to be a subprogram argument. If instead n is a constant, the bad array assignment is correctly diagnosed at

[Bug fortran/79312] Empty array in assignment not correctly type-checked

2017-02-01 Thread harper at msor dot vuw.ac.nz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79312 --- Comment #2 from harper at msor dot vuw.ac.nz --- Another manifestation of this bug: program emptyarray6 implicit none logical,allocatable:: OK(:) OK = [logical::]==[real::] print *,OK end program emptyarray6

[Bug fortran/61627] specification expression ICE with version 4.7.1 and 4.8.2, incorrect output with 4.4.7 and 4.9.0

2014-07-01 Thread harper at msor dot vuw.ac.nz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61627 --- Comment #2 from harper at msor dot vuw.ac.nz --- My diagnosis of the gfortran 4.9.0 error was misleading. Len(head1) was not 1 as I had thought but 3, so the wrong output may have been due to the initialization or the write statement, as the

[Bug fortran/61627] New: specification expression ICE with version 4.7.1 and 4.8.2, incorrect output with 4.4.7 and 4.9.0

2014-06-26 Thread harper at msor dot vuw.ac.nz
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: harper at msor dot vuw.ac.nz This 4-line Fortran program character(len('xyz')):: head1(2) = (/'a','b'/) character(3)

[Bug fortran/57871] gfortran -freal-4-real-16 gives wrong result for selected_real_kind(1)

2013-07-11 Thread harper at msor dot vuw.ac.nz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57871 --- Comment #5 from harper at msor dot vuw.ac.nz --- I have now found two more oddities of type promotion but I don't claim that these are gfortran bugs, only that the mmanual might need amending. Oddity 1. Although -freal-4-real-8 does wha

[Bug fortran/57871] gfortran -freal-4-real-16 gives wrong result for selected_real_kind(1)

2013-07-10 Thread harper at msor dot vuw.ac.nz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57871 --- Comment #4 from harper at msor dot vuw.ac.nz --- The reason I sent that bug report is that I had read the manual and found that -freal-4-real-16 makes the available real kinds 8, 10, 16. The Fortran standard says selected_real_kind(1) must

[Bug fortran/55174] [4.6 Regression] Segmentation fault with bad array reference

2012-11-04 Thread harper at msor dot vuw.ac.nz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55174 --- Comment #6 from harper at msor dot vuw.ac.nz 2012-11-05 00:52:10 UTC --- On Mon, 5 Nov 2012, John Harper wrote: > Date: Mon, 5 Nov 2012 13:02:37 +1300 (NZDT) > From: John Harper > To: janus at gcc dot gnu.org > Subje

[Bug fortran/55174] [4.6 Regression] Segmentation fault with bad array reference

2012-11-04 Thread harper at msor dot vuw.ac.nz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55174 --- Comment #5 from harper at msor dot vuw.ac.nz 2012-11-05 00:02:51 UTC --- On Sun, 4 Nov 2012, janus at gcc dot gnu.org wrote: > Date: Sun, 4 Nov 2012 22:23:40 + > From: janus at gcc dot gnu.org > To: john.har...@

[Bug fortran/55174] [4.6 Regression] Segmentation fault with bad array reference

2012-11-04 Thread harper at msor dot vuw.ac.nz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55174 --- Comment #3 from harper at msor dot vuw.ac.nz 2012-11-04 20:41:10 UTC --- On Fri, 2 Nov 2012, janus at gcc dot gnu.org wrote: > Date: Fri, 2 Nov 2012 10:54:50 + > From: janus at gcc dot gnu.org > To: john.har...@