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: 17 Dec 2007 19:01: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 #7 from burnus at gcc dot gnu dot org 2007-12-17 19:01 -------
In words of the standard (esp. last sentence):
"If an initialization expression includes a specification inquiry that depends
on a type parameter or an array bound of an entity specified in the same
specification-part, the type parameter or array bound shall be specified in a
prior specification of the specification-part. The prior specification may be
to the left of the specification inquiry in the same statement, but shall not
be within the same entity-decl."
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34495