On 5/2/06, Zdenek Dvorak <[EMAIL PROTECTED]> wrote:
Hello,

I have just noticed that size_type_node is signed in fortran frontend
(it caused an ice for me because unsigned_type_for returns it for
pointers, and I inserted an assert that the result of unsigned_type_for
is unsigned).

According to the comment in tree.h, size_type_node should correspond to
"The C type `size_t'", and standard specifies that size_t is unsigned.

Is this a bug in fortran frontend, or is size_type_node intentionally
set in a different way?

Nothing uses size_type_node in the fortran frontend, so it's surely a bug there.
Also there is the (the bogus)

2003-08-19  Diego Novillo  <[EMAIL PROTECTED]>

       * trans-types.c (gfc_init_types): Initialize
       signed_size_type_node with size_type_node.

Richard.

Reply via email to