public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/56850] New: Diagnostic of REAL*8 is odd: Accepted with -std=f95, -pedantic prints warning only with -std=gnu
@ 2013-04-05 20:27 burnus at gcc dot gnu.org
2013-04-05 20:30 ` [Bug fortran/56850] " burnus at gcc dot gnu.org
2013-04-05 20:32 ` dominiq at lps dot ens.fr
0 siblings, 2 replies; 3+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-04-05 20:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56850
Bug #: 56850
Summary: Diagnostic of REAL*8 is odd: Accepted with -std=f95,
-pedantic prints warning only with -std=gnu
Classification: Unclassified
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: accepts-invalid, diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: burnus@gcc.gnu.org
Test case:
real*8 r
r = 1
end
Using GCC 4.1 with -std=f95 (but not GCC >=4.3) shows:
real*8
1
Error: Nonstandard type declaration REAL*8 at (1)
Using GCC 4.1 to GCC 4.9, "-pedantic" shows:
real*8 r
1
Warning: GNU Extension: Nonstandard type declaration REAL*8 at (1)
However, with GCC 4.3 to 4.9, -std=f95 -pedantic shows nothing.
I had expected that -std=f95 prints some warning/error diagnostic but it does
not. And, in particular, if "-pedantic -std=gnu" prints a warning, "-pedantic
-std=f95" should do so even more!
Another oddness: "-pedantic" prints a warning, if one uses "-pedantic -Werror"
- what does it print? Answer an error - but not the same but a simple
"Unclassifiable statement".
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/56850] Diagnostic of REAL*8 is odd: Accepted with -std=f95, -pedantic prints warning only with -std=gnu
2013-04-05 20:27 [Bug fortran/56850] New: Diagnostic of REAL*8 is odd: Accepted with -std=f95, -pedantic prints warning only with -std=gnu burnus at gcc dot gnu.org
@ 2013-04-05 20:30 ` burnus at gcc dot gnu.org
2013-04-05 20:32 ` dominiq at lps dot ens.fr
1 sibling, 0 replies; 3+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-04-05 20:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56850
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2013-04-05 20:30:13 UTC ---
On a related note: As
http://www.open-mpi.org/community/lists/users/2013/04/21684.php shows, the
following error is misleading:
> real*16, intent(in) :: x
> 1
> Error: Old-style type declaration REAL*16 not supported at (1)
The problem is not the old-style type declaration but that kind=16 is not
supported. We should improve the error message.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/56850] Diagnostic of REAL*8 is odd: Accepted with -std=f95, -pedantic prints warning only with -std=gnu
2013-04-05 20:27 [Bug fortran/56850] New: Diagnostic of REAL*8 is odd: Accepted with -std=f95, -pedantic prints warning only with -std=gnu burnus at gcc dot gnu.org
2013-04-05 20:30 ` [Bug fortran/56850] " burnus at gcc dot gnu.org
@ 2013-04-05 20:32 ` dominiq at lps dot ens.fr
1 sibling, 0 replies; 3+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-04-05 20:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56850
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-04-05
Ever Confirmed|0 |1
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2013-04-05 20:31:56 UTC ---
Confirmed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-04-05 20:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-05 20:27 [Bug fortran/56850] New: Diagnostic of REAL*8 is odd: Accepted with -std=f95, -pedantic prints warning only with -std=gnu burnus at gcc dot gnu.org
2013-04-05 20:30 ` [Bug fortran/56850] " burnus at gcc dot gnu.org
2013-04-05 20:32 ` dominiq at lps dot ens.fr
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).