This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32095] Accepts invalid character(len(a)),dimension(1) :: a
- From: "domob at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jul 2008 11:54:03 -0000
- Subject: [Bug fortran/32095] Accepts invalid character(len(a)),dimension(1) :: a
- References: <bug-32095-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from domob at gcc dot gnu dot org 2008-07-31 11:54 -------
Thanks for the quick reply, Tobias. I'll try to get the "used but not yet
typed" part implemented to emit errors for -std != gnu.
To fix the problem in this PR, I see those possible solutions:
a) Disallow not-yet-typed variables completely inside SIZE/LDBOUND/UBOUND/LEN
(and possibly other use-cases).
b) Expressively *allow* those with -std=gnu only in a specified set of
use-cases, like DATA or as dimension/bound.
I think I'd go for b) but I'm not sure to what extend there's code around we
want to support with -std=gnu. Any other use-cases we want not-yet-typed
variables to be allowed in this case?
--
domob at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |domob at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2007-06-13 20:54:10 |2008-07-31 11:54:03
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32095