------- Comment #3 from mikael at gcc dot gnu dot org 2009-01-14 20:07 ------- is_scalar_expr_ptr is weird.
Those are the things to change in it, IMHO: - is_scalar_expr_ptr does not need to check whether character lengths are equal to 1 as arbitrary length character variables are considered as scalars by the standard; - full arrays, (and array ranges as well) are non-scalar even if they are of size 1; - the whole reference chain should be checked, not only the last one. Hum, may be it could be reduced to a mere expr->rank == 0 ? -- mikael at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-01-14 20:07:58 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38813