[gfortran,patch] Fix user operators extending intrinsic ones

FX Coudert fxcoudert@gmail.com
Fri Mar 23 22:55:00 GMT 2007


Hi all,

Attached patch fixes PR30877. The code that handled the user-defined  
extensions of intrinsic operators was wrong, so I did the following:
   1. in interface.c, implement the checks mandated by the standard
   2. in resolve.c, when an intrinsic operator presents a shape  
violation, do not throw a hard error but try the user-defined  
operators first
The sections of the standards relevant to point 1 are quoted in the  
patch. The rest is fairly easy.

Regtested on i686-linux, comes with two testcases, OK for mainline?
FX


:ADDPATCH fortran:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr30877.ChangeLog
Type: application/octet-stream
Size: 510 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070323/469bc03d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr30877.diff
Type: application/octet-stream
Size: 11532 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070323/469bc03d/attachment-0001.obj>


More information about the Gcc-patches mailing list