[Bug fortran/43265] [4.3/4.4/4.5 Regression] No EOF condition if reading with '(x)' from an empty file

2010-03-05 Thread terry at chem dot gu dot se
--- Comment #7 from terry at chem dot gu dot se 2010-03-06 03:36 --- Subject: Re: [4.3/4.4/4.5 Regression] No EOF condition if reading with '(x)' from an empty file > Also the F95 standard says in 10.6.1: > > "The position specified by an X edit descri

[Bug fortran/43265] New: Read no longer jumps on end

2010-03-04 Thread terry at chem dot gu dot se
3 ended [...@rscpc28 ReadTest]$ as expected. This is killing a large, multi-group quantum dynamics research code. -- Summary: Read no longer jumps on end Product: gcc Version: 4.4.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: terry at chem dot gu dot se GCC host triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43265

[Bug fortran/36761] Unallocated array "referenced" silently

2009-03-29 Thread terry at chem dot gu dot se
--- Comment #3 from terry at chem dot gu dot se 2009-03-29 23:50 --- Not a dupe of PR20520. That one is for questionable code producing (or not) some unexpected (to some) output, and crashing when run. This is illegal code that compiles AND RUNS quietly. Here unallocated is giving

[Bug fortran/32317] [bounds checking] No warning on bad arguments with explicit interface

2009-02-16 Thread terry at chem dot gu dot se
--- Comment #8 from terry at chem dot gu dot se 2009-02-17 04:51 --- It's not as frivolous as it sounds. ;-) If it is indeed illegal not to obey an explicit interface (and though I can't see anywhere in the standard that says this, the standard is pretty stupid if it's

[Bug fortran/32317] [bounds checking] No warning on bad arguments with explicit interface

2009-02-15 Thread terry at chem dot gu dot se
--- Comment #6 from terry at chem dot gu dot se 2009-02-16 00:43 --- Can someone with a better understanding of the standard than me comment as to whether this is actually legal Fortran when there is an explicit interface known? It certainly fails any principle of least surprise

[Bug fortran/39195] [Bounds check] Illegal empty array argument not detected at compile or runtime

2009-02-15 Thread terry at chem dot gu dot se
--- Comment #2 from terry at chem dot gu dot se 2009-02-16 00:36 --- Well, that's rather embarrassing. But it does illustrate this hasn't been fixed since I reported it in 2007. PR 27989 is different, as there is no explicit interface in that case. *** This bug has been m

[Bug fortran/32317] [bounds checking] No warning on bad arguments with explicit interface

2009-02-15 Thread terry at chem dot gu dot se
--- Comment #5 from terry at chem dot gu dot se 2009-02-16 00:36 --- *** Bug 39195 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32317

[Bug fortran/39195] New: Illegal empty array argument not detected at compile or runtime

2009-02-15 Thread terry at chem dot gu dot se
runtime Product: gcc Version: 4.3.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: terry at chem dot gu dot se GCC host triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39195

[Bug fortran/36761] New: Unallocated array "referenced" silently

2008-07-08 Thread terry at chem dot gu dot se
UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: terry at chem dot gu dot se GCC host triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36761

[Bug fortran/36700] New: ICE on calling a function

2008-07-02 Thread terry at chem dot gu dot se
rry at chem dot gu dot se GCC host triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36700

[Bug fortran/34546] Incorrect array identified in out of bounds runtime error

2008-07-01 Thread terry at chem dot gu dot se
--- Comment #4 from terry at chem dot gu dot se 2008-07-02 05:11 --- (In reply to comment #3) > I am not sure which patch did this, but I doubt it will be backported to 4.3 It already is in 4.3. ;-) As I said earlier, that warning is produced, but easy to make go away with inte

[Bug fortran/34546] Incorrect array identified in out of bounds runtime error

2008-07-01 Thread terry at chem dot gu dot se
--- Comment #2 from terry at chem dot gu dot se 2008-07-02 02:10 --- A gentle reminder: This problem still exists as of 4.3.2 20080626. (At least a compile-time warning is generated for Daniel's testcase. If that 1000 index is an integer variable, however, the compile-time wa

[Bug fortran/36683] New: -fbounds-check failure for allocated array and spread

2008-06-30 Thread terry at chem dot gu dot se
NCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: terry at chem dot gu dot se GCC host triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36683

[Bug fortran/36341] MATMUL: Bounds check missing (run time & compile time)

2008-05-27 Thread terry at chem dot gu dot se
--- Comment #4 from terry at chem dot gu dot se 2008-05-28 02:00 --- Somewhat reduced testcase that exhibits the same behaviour: program distgeom implicit none real(kind=8),dimension(7,12)::B real(kind=8),dimension(7,7)::U real(kind=8),dimension(6,12)::dzeta call random_number(U) call

[Bug fortran/34325] Wrong error message for syntax error

2008-01-23 Thread terry at chem dot gu dot se
--- Comment #9 from terry at chem dot gu dot se 2008-01-23 23:00 --- Actually, with bad parentheses it's easy to generate strange error messages: do while ((.true.) 1 Error: Invalid character in name at (1) do while (.true. 1 Error: Unclassifiable statement at (1)

[Bug fortran/34325] Wrong error message for syntax error

2008-01-23 Thread terry at chem dot gu dot se
--- Comment #8 from terry at chem dot gu dot se 2008-01-23 21:54 --- Rather than open a new bug, I'll tack onto this one as it's pretty much the same bug in a different context. The latest gfortran does indeed give a sensible error for the test case above. However, if we put

[Bug fortran/34676] New: IO error delayed

2008-01-04 Thread terry at chem dot gu dot se
ReportedBy: terry at chem dot gu dot se GCC host triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34676

[Bug fortran/34546] New: Incorrect array identified in out of bounds runtime error

2007-12-21 Thread terry at chem dot gu dot se
unds runtime error Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: terry at chem dot gu dot se GCC host tr

[Bug fortran/34325] New: Wrong error message for syntax error

2007-12-03 Thread terry at chem dot gu dot se
Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: terry at chem dot gu dot se GCC host triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34325

[Bug fortran/34306] misprinting of derived types

2007-12-02 Thread terry at chem dot gu dot se
--- Comment #4 from terry at chem dot gu dot se 2007-12-02 20:20 --- You're outputting an array of point structures. First the first element (a point), then the next, and so on. Why would you expect a different result? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34306

[Bug fortran/34260] present returns wrong value of optional variables

2007-11-28 Thread terry at chem dot gu dot se
--- Comment #1 from terry at chem dot gu dot se 2007-11-28 10:33 --- > gfortran behaves correctly with an explicit INTERFACE, but that > should not be required (as far as I know) Explicit interfaces are required for procedures with optional arguments. SUB is still external to MA

[Bug fortran/34230] Expressions of parameters evaluated with too high precision

2007-11-27 Thread terry at chem dot gu dot se
--- Comment #4 from terry at chem dot gu dot se 2007-11-27 22:56 --- (In reply to comment #3) (Admittedly from the 4.2.2 manual): 2.2 Options controlling Fortran dialect -frange-check Enable range checking on results of simplification of constant expressions during compilation. For

[Bug fortran/34228] -std=f* should diagnose used but later typed variables

2007-11-27 Thread terry at chem dot gu dot se
--- Comment #3 from terry at chem dot gu dot se 2007-11-27 22:23 --- > I don't worry about "len=3", I'm worrying about the type: > > data emname/'bar'/ > > is implicitly types REAL and then one line later comes: > > character(len

[Bug fortran/34228] -std=f* should diagnose used but later typed variables

2007-11-27 Thread terry at chem dot gu dot se
--- Comment #1 from terry at chem dot gu dot se 2007-11-27 22:12 --- But a character string is not an array. The len parameter is a type parameter. That part of the standard does not apply. It's legal. -- terry at chem dot gu dot se changed: What|Re

[Bug fortran/34230] Expressions of parameters evaluated with too high precision

2007-11-27 Thread terry at chem dot gu dot se
--- Comment #2 from terry at chem dot gu dot se 2007-11-27 21:57 --- (In reply to comment #1) > There is no bug here. You have explicitly disabled > range checking. This means that you no longer have > a limitation on range in constant folding. It may > be help to lo

[Bug fortran/29458] Spurious -Wuninitialized warning for implied do-loop counter

2007-11-16 Thread terry at chem dot gu dot se
--- Comment #6 from terry at chem dot gu dot se 2007-11-16 20:57 --- I'd just like to remind everyone that this is still an issue in gcc version 4.3.0 20071109 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29458

[Bug fortran/31124] Warn of unused PRIVATE module variables/procedures

2007-11-15 Thread terry at chem dot gu dot se
--- Comment #3 from terry at chem dot gu dot se 2007-11-15 10:27 --- (In reply to comment #2) > *** Bug 34092 has been marked as a duplicate of this bug. *** > So, to summarise: Unused parameters have been fixed in general, but unused private module entities remain undetected

[Bug fortran/34092] Should warn about unused private variables

2007-11-15 Thread terry at chem dot gu dot se
--- Comment #2 from terry at chem dot gu dot se 2007-11-15 10:19 --- (In reply to comment #1) > Duplicate of PR 31124 ? > Yar. I was misled the last time by the fact that PR 31129 also existed. The parameter case has been fixed, but not the private case. *** This bug ha

[Bug fortran/31124] Warn of unused PRIVATE module variables/procedures

2007-11-15 Thread terry at chem dot gu dot se
--- Comment #2 from terry at chem dot gu dot se 2007-11-15 10:19 --- *** Bug 34092 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31124

[Bug fortran/34092] New: Should warn about unused private variables

2007-11-14 Thread terry at chem dot gu dot se
: terry at chem dot gu dot se GCC host triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34092

[Bug fortran/34002] New: ICE with constant intrinsic array specs

2007-11-06 Thread terry at chem dot gu dot se
Summary: ICE with constant intrinsic array specs Product: gcc Version: 4.2.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: terry at c

[Bug fortran/32343] ICE with arrays and vector valued functions from a used module

2007-06-14 Thread terry at chem dot gu dot se
--- Comment #1 from terry at chem dot gu dot se 2007-06-14 15:24 --- Or maybe not. If x is explicitly 5-element in GetEpsR (no reference to Nr) the ICE still occurs. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32343

[Bug fortran/32343] New: ICE with arrays and vector valued functions from a used module

2007-06-14 Thread terry at chem dot gu dot se
ssignedTo: unassigned at gcc dot gnu dot org ReportedBy: terry at chem dot gu dot se GCC host triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32343

[Bug fortran/32323] New: Accepts invalid vector subscript actual argument for intent(out) dummy argument

2007-06-13 Thread terry at chem dot gu dot se
Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: terry at chem dot gu dot se GCC host triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32323

[Bug fortran/32317] No warning on bad arguments with explicit interface

2007-06-13 Thread terry at chem dot gu dot se
--- Comment #3 from terry at chem dot gu dot se 2007-06-13 16:23 --- (In reply to comment #2) > Neither SUN nor Intel fortran compilers issue such a warning. > Indeed. That does not imply that gfortran shouldn't, though. Hence the enhancement request. -- http://

[Bug fortran/32319] Bad automatic array argument

2007-06-13 Thread terry at chem dot gu dot se
--- Comment #2 from terry at chem dot gu dot se 2007-06-13 16:10 --- Ah. Of course explicit interfaces are required for automatic array arguments. My Fortran-Fu seems to be deserting me at the moment. :-( -- terry at chem dot gu dot se changed: What|Removed

[Bug fortran/32319] New: Bad automatic array argument

2007-06-13 Thread terry at chem dot gu dot se
: terry at chem dot gu dot se GCC host triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32319

[Bug fortran/32317] No warning on bad arguments with explicit interface

2007-06-13 Thread terry at chem dot gu dot se
--- Comment #1 from terry at chem dot gu dot se 2007-06-13 13:43 --- (Whoops. Mixed up output in that last post. Only 8 reals are printed in reality. My bad.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32317

[Bug fortran/32317] New: No warning on bad arguments with explicit interface

2007-06-13 Thread terry at chem dot gu dot se
licit interface Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: terry at chem dot gu dot se GCC host triplet: x86_64-un

[Bug fortran/31720] [4.1/4.2 only] ICE for module function returning automatic array

2007-05-04 Thread terry at chem dot gu dot se
--- Comment #8 from terry at chem dot gu dot se 2007-05-04 18:37 --- (In reply to comment #5) > (In reply to comment #4) > > (I guess I should qualify that. I don't have a copy of the standard laying > > around to check, but it's legal according to the Ellis, P

[Bug fortran/31720] [4.1/4.2 only] ICE for module function returning automatic array

2007-05-04 Thread terry at chem dot gu dot se
--- Comment #7 from terry at chem dot gu dot se 2007-05-04 18:35 --- Created an attachment (id=13508) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13508&action=view) Revised nnh.f90 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31720

[Bug fortran/31720] [4.1/4.2 only] ICE for module function returning automatic array

2007-05-04 Thread terry at chem dot gu dot se
--- Comment #6 from terry at chem dot gu dot se 2007-05-04 18:35 --- Created an attachment (id=13507) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13507&action=view) Revised acmod.f90 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31720

[Bug fortran/31720] [4.1/4.2 only] ICE for module function returning automatic array

2007-05-04 Thread terry at chem dot gu dot se
--- Comment #4 from terry at chem dot gu dot se 2007-05-04 17:50 --- (I guess I should qualify that. I don't have a copy of the standard laying around to check, but it's legal according to the Ellis, Philips and Lahey book.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31720

[Bug fortran/31720] [4.1/4.2 only] ICE for module function returning automatic array

2007-05-04 Thread terry at chem dot gu dot se
--- Comment #3 from terry at chem dot gu dot se 2007-05-04 17:46 --- While being a reasonably uncommon case, AFAICT it's a legal construct. That is: not invalid code. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31720

[Bug fortran/31731] New: False warning for variable used in 'automatic' implied do loop

2007-04-27 Thread terry at chem dot gu dot se
Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: terry at chem dot gu dot se GCC host triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31731

[Bug fortran/31720] New: ICE for module function returning automatic array

2007-04-26 Thread terry at chem dot gu dot se
ran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: terry at chem dot gu dot se GCC host triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31720

[Bug fortran/31124] Warn of unused PRIVATE module variables/procedures

2007-03-10 Thread terry at chem dot gu dot se
--- Comment #1 from terry at chem dot gu dot se 2007-03-11 01:57 --- I've filed #31129 specifically for the parameter case. This is unrelated to the private attribute. -- terry at chem dot gu dot se changed: What|Removed |

[Bug fortran/31129] New: No warning on unused parameters

2007-03-10 Thread terry at chem dot gu dot se
Version: 4.2.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: terry at chem dot gu dot se http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31129

[Bug fortran/31114] Consistent floating point arithmetic model option

2007-03-09 Thread terry at chem dot gu dot se
--- Comment #4 from terry at chem dot gu dot se 2007-03-09 21:29 --- It seems the "x86 is stupid, see bug 323" blinkers have come down. I'm not asking for anyone to alter any gcc code generation. I specifically don't want the FP in software mentioned by kargl

[Bug fortran/31114] Consistent floating point arithmetic model option

2007-03-09 Thread terry at chem dot gu dot se
--- Comment #2 from terry at chem dot gu dot se 2007-03-09 20:23 --- Andrew, this is not a duplicate of #323. I know why floating point results differ. I know there are architecture-specific options that result in a more consistent floating point model. (As far as I know, -ffloat

[Bug fortran/31114] New: Consistent floating point arithmetic model option

2007-03-09 Thread terry at chem dot gu dot se
Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: terry at chem dot gu dot se http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31114

[Bug fortran/31011] New: Incorrect error: parameter array sections

2007-03-01 Thread terry at chem dot gu dot se
tions Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: terry at chem dot gu dot se GCC build triplet: x86_64-unknown-linu