[Bug fortran/55099] New: Surprising 'PROCEDURE attribute conflicts with INTENT attribute' error

Joost.VandeVondele at mat dot ethz.ch gcc-bugzilla@gcc.gnu.org
Sat Oct 27 15:30:00 GMT 2012


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)



More information about the Gcc-bugs mailing list