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/42783] [4.5 Regression] Bogus Array bounds violation with optional array argument



------- Comment #2 from pault at gcc dot gnu dot org  2010-01-18 17:31 -------
Confirmed.

A weird and wonderful feature of this bug is that it disappears for -O2 and
higher :-)

The problem comes about because fsym->backend_decl is being used, which is
incorrect if the argument is missing because this does not correspond to the
declaration for the string.  Instead, the function gfc_conv_expr_present should
be used.

A patch is regtesting right now.

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pault at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-01-18 17:31:33
               date|                            |


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


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