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/51081] New: -std=f2003: Internal procedure in proc-pointer assignment: Mention that it is valid in F2008


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

             Bug #: 51081
           Summary: -std=f2003: Internal procedure in proc-pointer
                    assignment: Mention that it is valid in F2008
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org
                CC: janus@gcc.gnu.org


Trivial diagnostic bug.

Compiling with -std=2003 just prints:

  Error: Internal procedure 'int' is invalid
         in procedure pointer assignment at (1)

Expected: It mentions that it is actually valid in Fortran 2008, e.g.

  Error: Fortran 2008: Internal procedure 'int'
         in procedure pointer assignment at (1)

ptr => int
contains
  subroutine int()
  end subroutine int
end


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