This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/55099] New: Surprising 'PROCEDURE attribute conflicts with INTENT attribute' error
- From: "Joost.VandeVondele at mat dot ethz.ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 27 Oct 2012 15:30:16 +0000
- Subject: [Bug fortran/55099] New: Surprising 'PROCEDURE attribute conflicts with INTENT attribute' error
- Auto-submitted: auto-generated
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)