------- Comment #6 from pinskia at gcc dot gnu dot org 2008-11-14 23:51 ------- Actually I use sizeof all the time on pointers so I don't think this is useful. In fact it falls down with meta programming. That is: #define bitcase(type, a) ({typeof (a) b = a; type c; int notthesamesize[sizeof(a) == sizeof(type)]; memcpy(&c, &a, sizeof(a)); c;})
And then type is some pointer type. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25702