public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/54756] New: [OOP] Should reject CLASS, intent(out) in PURE procedures
@ 2012-09-29 18:19 burnus at gcc dot gnu.org
  2012-09-29 18:30 ` [Bug fortran/54756] " burnus at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-09-29 18:19 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 54756
           Summary: [OOP] Should reject CLASS, intent(out) in PURE
                    procedures
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org
                CC: janus@gcc.gnu.org


Fortran 2008 no longer allows CLASS(),INTENT(OUT) in PURE procedures, gfortran
accepts those.

(Note: I think one should also reject them for Fortran 2003 as it seems to make
life easier easier for the FINAL implementation.)

See "TECHNICAL CORRIGENDUM 1" to Fortran 2008,
ftp://ftp.nag.co.uk/sc22wg5/N1901-N1950/N1902.pdf in "Subclause 1.6.2"
See also ftp://ftp.nag.co.uk/sc22wg5/N1851-N1900/N1875.txt for f08/0011 and
f08/0033.

"Fortran 2003 permitted an INTENT(OUT) argument of a pure subroutine to be
polymorphic; that is not permitted by this part of ISO/IEC 153."

Side note: That doesn't seem to affect impure (elemental).


type t
end type t
contains
pure subroutine foo(x)
  class(t), intent(out) :: x
end subroutine
end


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

end of thread, other threads:[~2014-12-27 22:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-29 18:19 [Bug fortran/54756] New: [OOP] Should reject CLASS, intent(out) in PURE procedures burnus at gcc dot gnu.org
2012-09-29 18:30 ` [Bug fortran/54756] " burnus at gcc dot gnu.org
2012-09-29 18:33 ` burnus at gcc dot gnu.org
2012-11-06 10:10 ` [Bug fortran/54756] [OOP] [F08] " janus at gcc dot gnu.org
2012-11-06 17:58 ` janus at gcc dot gnu.org
2012-11-06 21:20 ` janus at gcc dot gnu.org
2014-12-21 12:19 ` dominiq at lps dot ens.fr
2014-12-22 15:50 ` janus at gcc dot gnu.org
2014-12-22 15:56 ` janus at gcc dot gnu.org
2014-12-27 22:41 ` janus at gcc dot gnu.org
2014-12-27 22:43 ` janus 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).