http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51782
Georg-Johann Lay <gjl at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #26262|0 |1 is obsolete| | --- Comment #14 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-01-25 18:25:22 UTC --- Created attachment 26467 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26467 a-bug.c The draft address space names have been replaced by their final names, which is __flash now. The draft __pgm is no more supported. http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183529 Updated test case: ================== struct rgb { char r, g, b; }; char read_rgb_ok (const __flash struct rgb *s) { return s->r + s->g + s->b; } char read_rgb_bug (const __flash struct rgb *s) { struct rgb t = *s; return t.r + t.g + t.b; }