public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/46484] New: Should reject ALLOCATED(non-variable expression )
@ 2010-11-15 14:49 burnus at gcc dot gnu.org
  2010-11-15 14:55 ` [Bug fortran/46484] " burnus at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: burnus at gcc dot gnu.org @ 2010-11-15 14:49 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46484

           Summary: Should reject ALLOCATED(non-variable expression )
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org


gfortran should reject non-variable expressions for ALLOCATED:

"13.7.11 ALLOCATED (ARRAY) or ALLOCATED (SCALAR)
Description. Query allocation status.
Class. Inquiry function.
Arguments.
  ARRAY shall be an allocatable array.
  SCALAR shall be an allocatable scalar."

Test case:

implicit none
logical :: ll
ll = allocated (f())
contains
  function f()
    integer, allocatable :: f
  end function f
end


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-11-15 20:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-15 14:49 [Bug fortran/46484] New: Should reject ALLOCATED(non-variable expression ) burnus at gcc dot gnu.org
2010-11-15 14:55 ` [Bug fortran/46484] " burnus at gcc dot gnu.org
2010-11-15 15:38 ` [Bug fortran/46484] [4.5/4.6 Regression] " burnus at gcc dot gnu.org
2010-11-15 17:31 ` kargl at gcc dot gnu.org
2010-11-15 18:08 ` burnus at gcc dot gnu.org
2010-11-15 20:48 ` burnus at gcc dot gnu.org
2010-11-15 21:04 ` burnus at gcc dot gnu.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).