This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]