------- Comment #1 from rguenth at gcc dot gnu dot org 2010-06-08 12:52 ------- Argument why the testcase is invalid might go along the line that a pointer to struct Q may not be converted to a pointer to struct R, or that &((struct R *)q)->a is accessing *q as struct R.
This is similar to PR41317. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |4.3.5 4.4.3 4.5.0 Known to work| |4.1.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44468