------- Comment #8 from jb at gcc dot gnu dot org 2010-04-01 08:55 ------- (In reply to comment #7) > I can confirm that the patch works for both the "(a)" and the "*" case.
Thanks for testing. I'll commit the patch to 4.5 tonight. > In the code, there is still some size_t reference, should > probably be gfc_offset as well: > > if (u == NULL) > return ((size_t) -1); > > Not that it would matter, though. Yeah, it won't make any difference. The real bug here is using size_t for the return value, there is PR39654 for that. (And, of course, (size_t) -1 is some very large value since size_t is unsigned, and not -1 which is the correct behavior). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43605