From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9657 invoked by alias); 15 May 2009 18:22:55 -0000 Received: (qmail 9631 invoked by uid 48); 15 May 2009 18:22:43 -0000 Date: Fri, 15 May 2009 18:22:00 -0000 Subject: [Bug fortran/40164] New: Fortran 2003: "Arrays of procedure pointers" X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "janus at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-05/txt/msg01350.txt.bz2 PROGRAM test_prog TYPE ProcPointerArray PROCEDURE(add), POINTER, NOPASS :: f END TYPE ProcPointerArray TYPE (ProcPointerArray) :: f_array(1) PROCEDURE(add), POINTER :: f f_array(1)%f => add f => f_array(1)%f PRINT*, f(2.,4.) CONTAINS FUNCTION add(a,b) RESULT(sum) REAL, INTENT(in) :: a, b REAL :: sum sum = a + b END FUNCTION add END PROGRAM test_prog This produces the error f => f_array(1)%f 1 Error: VARIABLE attribute of 'f_array' conflicts with PROCEDURE attribute at (1) Reported by Barron Bichon. -- Summary: Fortran 2003: "Arrays of procedure pointers" Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: janus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40164