------- Comment #2 from rguenth at gcc dot gnu dot org 2010-05-08 14:01 -------
struct Ustr {
char data[1];
};
int ustr_xi__embed_val_get(char *);
inline int ustr_len(struct Ustr *s1)
{
return ustr_xi__embed_val_get(s1->data);
}
static struct Ustr *s1 = ((struct Ustr *) "");
int tst(char *cstr)
{
return ustr_len(s1);
}
D.1971_5 = &VIEW_CONVERT_EXPR<struct Ustr>("").data[0];
we can't take the address of this. It's forwprop that produces this from
s1.0_1 = (struct Ustr *) "";
D.1971_5 = &s1.0_1->data[0];
--
rguenth 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 |2010-05-08 14:01:31
date| |
Target Milestone|--- |4.5.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44038