[Bug fortran/35030] New: add type/kind information to pointer assignments

dfranke at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jan 30 16:00:00 GMT 2008


As done for actual and formal arguments in functions/subroutines (e.g.
PR34901), the error messages for pointer assignments could be improved:

E,g,
        neighbours_neighbours => dummy_atom_kdtree_region_search(this%beads, at
                            1
Error: Different types in pointer assignment at (1)

is correct but not extraordinarily helpful. Better:

"Error: Different types in pointer assignment at (1); attempted to assign
TYPE(...) to TYPE(...)."


Reminder to self: see expr.c (gfc_check_pointer_assign).


-- 
           Summary: add type/kind information to pointer assignments
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dfranke at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list