public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/26054] New: Gratuitous warning about Fortran 2003 features w/o -std=...
@ 2006-01-31 23:05 anlauf at gmx dot de
2006-01-31 23:08 ` [Bug fortran/26054] " pinskia at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: anlauf at gmx dot de @ 2006-01-31 23:05 UTC (permalink / raw)
To: gcc-bugs
Hi,
compiling the following code with the default language "level"
(is that "gnu" or something else?) leads to:
% gfortran gfcbug33.f90
In file gfcbug33.f90:2
print *, [ 1, 2 ]
1
Warning: New in Fortran 2003: [...] style array constructors at (1)
% cat gfcbug33.f90
program gfcbug33
print *, [ 1, 2 ]
end program gfcbug33
When -std=gnu, -std=legacy or -std=f2003 is specified, then
no warning appears. Assuming that -std=gnu is the default,
the warning is not appropriate. I also find it kind of funny,
because [...] style array constructors are probable there to
stay and not obsolescent or deprecated.
I suggest the warning to be removed. The error for -std=f95
is of course ok.
Cheers,
-ha
--
Summary: Gratuitous warning about Fortran 2003 features w/o -
std=...
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anlauf at gmx dot de
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26054
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/26054] Gratuitous warning about Fortran 2003 features w/o -std=...
2006-01-31 23:05 [Bug fortran/26054] New: Gratuitous warning about Fortran 2003 features w/o -std= anlauf at gmx dot de
@ 2006-01-31 23:08 ` pinskia at gcc dot gnu dot org
2006-01-31 23:23 ` anlauf at gmx dot de
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-31 23:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-01-31 23:07 -------
The default is somewhere inbetween -std=f90 (which does not really exist) and
-std=gnu
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26054
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/26054] Gratuitous warning about Fortran 2003 features w/o -std=...
2006-01-31 23:05 [Bug fortran/26054] New: Gratuitous warning about Fortran 2003 features w/o -std= anlauf at gmx dot de
2006-01-31 23:08 ` [Bug fortran/26054] " pinskia at gcc dot gnu dot org
@ 2006-01-31 23:23 ` anlauf at gmx dot de
2006-02-10 8:42 ` toon at moene dot indiv dot nluug dot nl
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: anlauf at gmx dot de @ 2006-01-31 23:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from anlauf at gmx dot de 2006-01-31 23:23 -------
(In reply to comment #1)
> The default is somewhere inbetween -std=f90 (which does not really exist) and
> -std=gnu
Hmmm. Did you really mean Fortran 90 (which does exist
as a standard but not as f90 in gfortran) or Fortran 95?
Anyway, if your comment is true, then I feel this "somewhere
in between" is the real bug, unless documented as a feature
or added as an appropriate option (-std=somewhere-in-between).
[Some other compilers (like xlf) use the most loose definition
of language if none is specified. In the case of xlf you can
explicitly confirm it with -qlanglvl=extended.]
Feel free to correct the title appropriately.
Cheers,
-ha
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26054
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/26054] Gratuitous warning about Fortran 2003 features w/o -std=...
2006-01-31 23:05 [Bug fortran/26054] New: Gratuitous warning about Fortran 2003 features w/o -std= anlauf at gmx dot de
2006-01-31 23:08 ` [Bug fortran/26054] " pinskia at gcc dot gnu dot org
2006-01-31 23:23 ` anlauf at gmx dot de
@ 2006-02-10 8:42 ` toon at moene dot indiv dot nluug dot nl
2006-02-11 13:27 ` toon at moene dot indiv dot nluug dot nl
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2006-02-10 8:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from toon at moene dot indiv dot nluug dot nl 2006-02-10 08:42 -------
We don't warn for other Fortran 2003 features we support without a -std=f95, so
I'll look into it and fix it.
--
toon at moene dot indiv dot nluug dot nl changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |toon at moene dot indiv dot
|dot org |nluug dot nl
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-02-10 08:42:25
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26054
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/26054] Gratuitous warning about Fortran 2003 features w/o -std=...
2006-01-31 23:05 [Bug fortran/26054] New: Gratuitous warning about Fortran 2003 features w/o -std= anlauf at gmx dot de
` (2 preceding siblings ...)
2006-02-10 8:42 ` toon at moene dot indiv dot nluug dot nl
@ 2006-02-11 13:27 ` toon at moene dot indiv dot nluug dot nl
2006-02-15 21:07 ` toon at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2006-02-11 13:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from toon at moene dot indiv dot nluug dot nl 2006-02-11 13:27 -------
Subject: Re: Gratuitous warning about Fortran 2003 features w/o -std=...
> We don't warn for other Fortran 2003 features we support without a -std=f95, so
> I'll look into it and fix it.
Well, that's not true, we do.
So I'll propose a fix for the whole, to fortran@gcc.gnu.org
and gcc-patches@gcc.gnu.org.
Cheers,
Toon
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26054
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/26054] Gratuitous warning about Fortran 2003 features w/o -std=...
2006-01-31 23:05 [Bug fortran/26054] New: Gratuitous warning about Fortran 2003 features w/o -std= anlauf at gmx dot de
` (3 preceding siblings ...)
2006-02-11 13:27 ` toon at moene dot indiv dot nluug dot nl
@ 2006-02-15 21:07 ` toon at gcc dot gnu dot org
2006-03-11 12:04 ` toon at gcc dot gnu dot org
2006-03-11 12:09 ` toon at moene dot indiv dot nluug dot nl
6 siblings, 0 replies; 8+ messages in thread
From: toon at gcc dot gnu dot org @ 2006-02-15 21:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from toon at gcc dot gnu dot org 2006-02-15 21:07 -------
Subject: Bug 26054
Author: toon
Date: Wed Feb 15 21:06:58 2006
New Revision: 111117
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111117
Log:
2006-02-15 Toon Moene <toon@moene.indiv.nluug.nl>
PR fortran/26054
* fortran/options.c: Do not warn for Fortran 2003 features
by default.
* testsuite/gfortran.dg/enum_8.f90: Remove check for warning.
* testsuite/gfortran.dg/iomsg_1.f90: Ditto.
* testsuite/gfortran.dg/enum_1.f90: Ditto.
* testsuite/gfortran.dg/enum_9.f90: Ditto.
* testsuite/gfortran.dg/enum_2.f90: Ditto.
* testsuite/gfortran.dg/enum_10.f90: Ditto.
* testsuite/gfortran.dg/enum_3.f90: Ditto.
* testsuite/gfortran.dg/flush_1.f90: Ditto.
* testsuite/gfortran.dg/enum_4.f90: Ditto.
* testsuite/gfortran.dg/array_constructor_1.f90: Ditto.
* testsuite/gfortran.dg/enum_5.f90: Ditto.
* testsuite/gfortran.dg/enum_6.f90: Ditto.
* testsuite/gfortran.dg/enum_7.f90: Ditto.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/options.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/array_constructor_1.f90
trunk/gcc/testsuite/gfortran.dg/enum_1.f90
trunk/gcc/testsuite/gfortran.dg/enum_10.f90
trunk/gcc/testsuite/gfortran.dg/enum_2.f90
trunk/gcc/testsuite/gfortran.dg/enum_3.f90
trunk/gcc/testsuite/gfortran.dg/enum_4.f90
trunk/gcc/testsuite/gfortran.dg/enum_5.f90
trunk/gcc/testsuite/gfortran.dg/enum_6.f90
trunk/gcc/testsuite/gfortran.dg/enum_7.f90
trunk/gcc/testsuite/gfortran.dg/enum_8.f90
trunk/gcc/testsuite/gfortran.dg/enum_9.f90
trunk/gcc/testsuite/gfortran.dg/flush_1.f90
trunk/gcc/testsuite/gfortran.dg/iomsg_1.f90
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26054
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/26054] Gratuitous warning about Fortran 2003 features w/o -std=...
2006-01-31 23:05 [Bug fortran/26054] New: Gratuitous warning about Fortran 2003 features w/o -std= anlauf at gmx dot de
` (4 preceding siblings ...)
2006-02-15 21:07 ` toon at gcc dot gnu dot org
@ 2006-03-11 12:04 ` toon at gcc dot gnu dot org
2006-03-11 12:09 ` toon at moene dot indiv dot nluug dot nl
6 siblings, 0 replies; 8+ messages in thread
From: toon at gcc dot gnu dot org @ 2006-03-11 12:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from toon at gcc dot gnu dot org 2006-03-11 12:04 -------
Subject: Bug 26054
Author: toon
Date: Sat Mar 11 12:04:14 2006
New Revision: 111962
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111962
Log:
2006-03-11 Toon Moene <toon@moene.indiv.nluug.nl>
PR fortran/26054
* fortran/options.c: Do not warn for Fortran 2003 features
by default.
* testsuite/gfortran.dg/enum_8.f90: Remove check for warning.
* testsuite/gfortran.dg/iomsg_1.f90: Ditto.
* testsuite/gfortran.dg/enum_1.f90: Ditto.
* testsuite/gfortran.dg/enum_9.f90: Ditto.
* testsuite/gfortran.dg/enum_2.f90: Ditto.
* testsuite/gfortran.dg/enum_10.f90: Ditto.
* testsuite/gfortran.dg/enum_3.f90: Ditto.
* testsuite/gfortran.dg/flush_1.f90: Ditto.
* testsuite/gfortran.dg/enum_4.f90: Ditto.
* testsuite/gfortran.dg/array_constructor_1.f90: Ditto.
* testsuite/gfortran.dg/enum_5.f90: Ditto.
* testsuite/gfortran.dg/enum_6.f90: Ditto.
* testsuite/gfortran.dg/enum_7.f90: Ditto.
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/options.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/array_constructor_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/enum_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/enum_10.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/enum_2.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/enum_3.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/enum_4.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/enum_5.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/enum_6.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/enum_7.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/enum_8.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/enum_9.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/flush_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/iomsg_1.f90
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26054
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/26054] Gratuitous warning about Fortran 2003 features w/o -std=...
2006-01-31 23:05 [Bug fortran/26054] New: Gratuitous warning about Fortran 2003 features w/o -std= anlauf at gmx dot de
` (5 preceding siblings ...)
2006-03-11 12:04 ` toon at gcc dot gnu dot org
@ 2006-03-11 12:09 ` toon at moene dot indiv dot nluug dot nl
6 siblings, 0 replies; 8+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2006-03-11 12:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from toon at moene dot indiv dot nluug dot nl 2006-03-11 12:09 -------
Bug fix now also committed to the 4.1 branch, so will be fixed as of 4.1.1.
--
toon at moene dot indiv dot nluug dot nl changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26054
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-03-11 12:09 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-31 23:05 [Bug fortran/26054] New: Gratuitous warning about Fortran 2003 features w/o -std= anlauf at gmx dot de
2006-01-31 23:08 ` [Bug fortran/26054] " pinskia at gcc dot gnu dot org
2006-01-31 23:23 ` anlauf at gmx dot de
2006-02-10 8:42 ` toon at moene dot indiv dot nluug dot nl
2006-02-11 13:27 ` toon at moene dot indiv dot nluug dot nl
2006-02-15 21:07 ` toon at gcc dot gnu dot org
2006-03-11 12:04 ` toon at gcc dot gnu dot org
2006-03-11 12:09 ` toon at moene dot indiv dot nluug dot nl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).