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/29490] internal compiler error: in fold_binary, at fold-const.c:8239



------- Comment #2 from pault at gcc dot gnu dot org  2006-10-17 20:20 -------
Thank you, Richard - thanks to your splendid analysis, I was able to go
straight to the source of the problem:

trans-types.c(gfc_get_nodesc_array_type):1038 sets GFC_TYPE_ARRAY_LBOUND to
NULL_TREE if the arrayspec lower is not constant.  It then feeds through to the
interfacery that cannot cope with this and the ICE ensues.  There is no reason
why GFC_TYPE_ARRAY_LBOUND cannot be set; being fortran, gfc_index_one_node is
an OK choice, although zero does OK too.  This is regtesting as I write.  If
all is well, I will submit before going to bed.

Many thanks!

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|NEW                         |ASSIGNED
   Last reconfirmed|2006-10-17 14:09:01         |2006-10-17 20:20:17
               date|                            |


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


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