This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34495] [4.3 Regression] accepts invalid initialization expressions with -std=f95
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Dec 2007 14:35:24 -0000
- Subject: [Bug fortran/34495] [4.3 Regression] accepts invalid initialization expressions with -std=f95
- References: <bug-34495-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2007-12-16 14:35 -------
Confirm. Though other compilers have better error messages than 4.2 had. (These
are all shown by default, i.e. none of the compilers below accepts it.)
NAG f95:
Error: PARAMETER PI used before its definition is complete
g95:
Error: PARAMETER value is used before being defined at (1)
ifort:
Error: A PARAMETER must not be defined in terms of itself. [PI]
(sunf95 and openf95 have also not a good message.)
I think for -std=f95 one needs another error. NAG f95 prints:
Error: The REAL function is not permitted in an initialisation expression
I am also not sure whether I would call the following a regression:
> Error: TRANSFER intrinsic not implemented for initialization at (1)
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-12-16 14:35:24
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34495