------- Comment #1 from pinskia at gcc dot gnu dot org 2010-06-20 00:37 ------- Well I think this is on purpose really. In the array case, we can "inline" the value while in the other case, b itself is not const so it can be changed; that is be assigned to in normal code.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44598