public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/32715] New: improve diagnostics of attempted allocation of non-array
@ 2007-07-10 9:35 dfranke at gcc dot gnu dot org
2007-07-19 16:30 ` [Bug fortran/32715] " burnus at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2007-07-10 9:35 UTC (permalink / raw)
To: gcc-bugs
$> cat allocate.f90
INTEGER :: i
ALLOCATE(i(3))
end
$> gfortran-svn -g -Wall allocate.f90
allocate.f90:2.10:
ALLOCATE(i(3))
1
Error: Syntax error in ALLOCATE statement at (1)
A message as "variable 'i' at (1) not a pointer or allocatable array" would be
preferable.
--
Summary: improve diagnostics of attempted allocation of non-array
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dfranke at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32715
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/32715] improve diagnostics of attempted allocation of non-array
2007-07-10 9:35 [Bug fortran/32715] New: improve diagnostics of attempted allocation of non-array dfranke at gcc dot gnu dot org
@ 2007-07-19 16:30 ` burnus at gcc dot gnu dot org
2007-08-08 16:44 ` fxcoudert at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-07-19 16:30 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/32715] improve diagnostics of attempted allocation of non-array
2007-07-10 9:35 [Bug fortran/32715] New: improve diagnostics of attempted allocation of non-array dfranke at gcc dot gnu dot org
2007-07-19 16:30 ` [Bug fortran/32715] " burnus at gcc dot gnu dot org
@ 2007-08-08 16:44 ` fxcoudert at gcc dot gnu dot org
2008-12-11 0:17 ` kargl at gcc dot gnu dot org
2009-08-23 3:40 ` kargl at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-08-08 16:44 UTC (permalink / raw)
To: gcc-bugs
--
fxcoudert 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-08-08 16:44:15
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32715
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/32715] improve diagnostics of attempted allocation of non-array
2007-07-10 9:35 [Bug fortran/32715] New: improve diagnostics of attempted allocation of non-array dfranke at gcc dot gnu dot org
2007-07-19 16:30 ` [Bug fortran/32715] " burnus at gcc dot gnu dot org
2007-08-08 16:44 ` fxcoudert at gcc dot gnu dot org
@ 2008-12-11 0:17 ` kargl at gcc dot gnu dot org
2009-08-23 3:40 ` kargl at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: kargl at gcc dot gnu dot org @ 2008-12-11 0:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from kargl at gcc dot gnu dot org 2008-12-11 00:16 -------
The patch I submitted, here:
http://gcc.gnu.org/ml/fortran/2008-12/msg00167.html
gives
troutmask:sgk[224] gfc4x -o z k.f90
k.f90:2.10:
ALLOCATE(i(3))
1
Error: Allocate-object at (1) is not a nonprocedure pointer or
an allocatable variable
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32715
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/32715] improve diagnostics of attempted allocation of non-array
2007-07-10 9:35 [Bug fortran/32715] New: improve diagnostics of attempted allocation of non-array dfranke at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-12-11 0:17 ` kargl at gcc dot gnu dot org
@ 2009-08-23 3:40 ` kargl at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: kargl at gcc dot gnu dot org @ 2009-08-23 3:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from kargl at gcc dot gnu dot org 2009-08-23 03:39 -------
Fixed by revision 151023.
No plans for a back port.
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32715
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-08-23 3:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-10 9:35 [Bug fortran/32715] New: improve diagnostics of attempted allocation of non-array dfranke at gcc dot gnu dot org
2007-07-19 16:30 ` [Bug fortran/32715] " burnus at gcc dot gnu dot org
2007-08-08 16:44 ` fxcoudert at gcc dot gnu dot org
2008-12-11 0:17 ` kargl at gcc dot gnu dot org
2009-08-23 3:40 ` kargl at gcc dot gnu dot org
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).