public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/55099] New: Surprising 'PROCEDURE attribute conflicts with INTENT attribute' error
@ 2012-10-27 15:30 Joost.VandeVondele at mat dot ethz.ch
  2012-10-27 17:29 ` [Bug fortran/55099] Surprising but valid " burnus at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2012-10-27 15:30 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55099
           Summary: Surprising 'PROCEDURE attribute conflicts with INTENT
                    attribute' error
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Joost.VandeVondele@mat.ethz.ch


In the following, a surprising (but correct) error message is issued. Maybe it
is possible to improve the wording to point at the other option... looking at
ifort's error message is cheating ;-) but certainly that one helps the
non-expert.

SUBROUTINE S(num_proc_2d)
  INTEGER, INTENT(IN) :: num_proc_2d
  INTEGER :: proc_x,proc_y
  proc_x=num_proc_2d(1) ; proc_x=num_proc_2d(2)
END SUBROUTINE

Error message:

SUBROUTINE S(num_proc_2d)
                        1
Error: PROCEDURE attribute conflicts with INTENT attribute in 'num_proc_2d' at
(1)


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

end of thread, other threads:[~2014-01-18 17:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-27 15:30 [Bug fortran/55099] New: Surprising 'PROCEDURE attribute conflicts with INTENT attribute' error Joost.VandeVondele at mat dot ethz.ch
2012-10-27 17:29 ` [Bug fortran/55099] Surprising but valid " burnus at gcc dot gnu.org
2012-10-27 17:38 ` Joost.VandeVondele at mat dot ethz.ch
2014-01-18 17:33 ` dominiq at lps dot ens.fr

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).