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/35033] Valid ASSIGNMENT(=) rejected



------- Comment #3 from burnus at gcc dot gnu dot org  2008-01-30 22:29 -------
Created an attachment (id=15059)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15059&action=view)
Patch - build & regtested (x86-64-linux)

Patch fixes actual problem and includes a test case. Missing is only improved
diagnostics. gfortran properly rejects the "p = q", however, it does not
diagnose this directly, but simply does not match any procedure.

I think one should do (in/with compare_actual_formal): First check whether it
matches in general; if it does check for the constrains. Currently both is done
at the same time and thus if "where == NULL" no diagnostics is printed.


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #15057|0                           |1
        is obsolete|                            |
         AssignedTo|unassigned at gcc dot gnu   |burnus at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED


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


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