This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35030] New: add type/kind information to pointer assignments
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2008 15:05:47 -0000
- Subject: [Bug fortran/35030] New: add type/kind information to pointer assignments
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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