#include <stdio.h> int main() { int* const savepos = sizeof(*savepos) ? 0 : 0;
// code for the next line is left out! printf("size of thingy is %d\n", sizeof(*savepos)); } Any line of code containing sizeof(*savepos) gets stripped. If you compile and run this, nothing is printed. -- Summary: sizeof(*var) in expression drops entire line of code out of compile Product: gcc Version: 4.0.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: deb at pixar dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29106