c++/10332: Template classes are not instantiated correctly in presense of #pragma pack()

Momchil Velikov velco@fadata.bg
Fri Apr 11 13:52:00 GMT 2003


>>>>> "Igor" == Igor A Goussarov <igusarov@akella.com> writes:

    Igor>     Being a programmer myself I can see where all this comes from: it
    Igor> is likely that gcc uses some global variable for storing the current
    Igor> packing size instead of associating the packing size with each
    Igor> individual data structure. Thus, when there is a need to create an
    Igor> instance of a template class, the compiler simply uses the current
    Igor> value of that global variable.

What is the scope of #pragma pack ?

~velco



More information about the Gcc-bugs mailing list