[Patch, fortran] PR25077 - No diagnostic if interface assignment modifies intrinsic type assigments

Paul Thomas paulthomas2@wanadoo.fr
Sun Aug 20 06:58:00 GMT 2006


:ADDPATCH fortran:

If this comes through twice, I apologise - I apparently sent it OK last 
night but I have not seen it on the list.

The title, ChangeLog and patch speak for themselves here.  The only 
question that I would have about this patch is whether we want an error 
or a warning?  At present, gfortran silently ignores such interface 
assignments and uses the intrinsic assignments.  The testcase is 
developed from the reporter's example.

Regested on SUSE10.1/AMD64 - OK for trunk and 4.1?

Paul

2006-08-19  Paul Thomas  <pault@gcc.gnu.org>

   PR fortran/25077
   * interface.c (check_operator_interface): Throw error if the
   interface assignment tries to change intrinsic type assigments.

2006-08-19  Paul Thomas  <pault@gcc.gnu.org>

   PR fortran/25077
   * gfortran.dg/redefined_intrinsic_assignment.f90: New test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr25077.diff
Type: text/x-patch
Size: 1666 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060820/6225229f/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Change.Logs
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060820/6225229f/attachment.ksh>


More information about the Gcc-patches mailing list