http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56968



             Bug #: 56968

           Summary: Issue with a procedure defined with a generic name

                    returning procedure pointer

    Classification: Unclassified

           Product: gcc

           Version: 4.7.2

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: fortran

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: samuel.debio...@ujf-grenoble.fr





Created attachment 29875

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29875

Test case that shows the bug



In short, a genericly named procedure fails to return a procedure pointer :



    ptr => specific_name_get_proc_ptr()    ! OK

    ptr => generic_name_get_proc_ptr()  ! KO

           1

Error: Interface mismatch in procedure pointer assignment at (1):

Type/rank mismatch in return value of 'generic_name_get_proc_ptr'



Attached is a test case that show the problem with gfortran 4.7, 4.8 and

trunk.



See http://gcc.gnu.org/ml/fortran/2013-04/msg00151.html for the complete story.

Reply via email to