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: unassig...@gcc.gnu.org

        ReportedBy: joost.vandevond...@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)

Reply via email to