This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32715] improve diagnostics of attempted allocation of non-array
- 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: 19 Jul 2007 16:30:08 -0000
- Subject: [Bug fortran/32715] improve diagnostics of attempted allocation of non-array
- References: <bug-32715-13648@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-07-19 16:30 -------
In gfc_match_allocate
m = gfc_match_variable (&tail->expr, 0);
matches successfully, but it fails at:
if (gfc_match (" )%t") != MATCH_YES)
goto syntax;
As "i" is scalar, it does not seem to match the "(4)" (or only partially) and
thus it does not match " )%t".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32715