[Bug c/53424] New: dynamic array expressions get wrong sizeof() if pointers to const are involved and the pointers are changed (const is misapplied to the whole expression)

2012-05-19 Thread gccbug at shaggy dot cc
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53424 Bug #: 53424 Summary: dynamic array expressions get wrong sizeof() if pointers to const are involved and the pointers are changed (const is misapplied to the whole expression) Clas

[Bug c/53424] dynamic array expressions get wrong sizeof() if pointers to const are involved and the pointers are changed (const is misapplied to the whole expression)

2012-05-19 Thread gccbug at shaggy dot cc
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53424 --- Comment #1 from Frank Barrus 2012-05-20 05:31:02 UTC --- Of particular attention, look at the example function "negativesizeof2". It's not just the sizeof() function returning the incorrect size. In this case, the pointer change retroactivel