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/35698] lbound and ubound wrong for allocated run-time zero size array



------- Comment #4 from pault at gcc dot gnu dot org  2008-03-28 08:33 -------
(In reply to comment #3)

> 1) If I am not mistaken, the first change is within a commented block (look at
> the last line in the diff.:
> '     }  */')

Yes, indeed - the comment has been made consistent with the intended patch....

> 
> 2) With the patch I have a lot of regressions on my quick and dirty testsuite.
> Among them I have several:

The patch posted here is in error - the version posted to the lists is correct.
 Please note that I have no idea why what appears here did anything for the
reporter's testcase!

+       size = fold_build3 (COND_EXPR, gfc_array_index_type, cond,
+                         size, gfc_index_zero_node);

has the last two arguments the wrong way round *sorry*

Cheers

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dominiq at lps dot ens dot
                   |                            |fr


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


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