Comment 1 for bug 475450

Revision history for this message
Andy Whitcroft (apw) wrote : Re: gcc-4.4 4.4.2-1ubuntu2 offfsetof seems to trigger "internal compiler error: Segmentation fault"

Note that container_of() is defined thus:

    #define container_of(ptr, type, member) ({ \
        const typeof( ((type *)0)->member ) *__mptr = (ptr); \
        (type *)( (char *)__mptr - offsetof(type,member) );})