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

ljrittle@gcc.gnu.org ljrittle@gcc.gnu.org
Fri Apr 11 01:16:00 GMT 2003


Synopsis: Template classes are not instantiated correctly in presense of #pragma pack()

State-Changed-From-To: open->analyzed
State-Changed-By: ljrittle
State-Changed-When: Fri Apr 11 01:16:40 2003
State-Changed-Why:
    Igor created a small test case which displays the behavior he considers a bug and included an analysis of the failure.  I will add only one comment: because a feature is hard to use in a complex program does not imply that the feature has incorrect behaviour.  In this case, #pragma pack came from a C ABI.  It is doubtful anyone ever looked at the rules as applied to C ++.  E.g. no documentation on such interactions is found in tm.texi.  One correct resolution to this PR is to update our documentation.  (I will also add another user-level fix.)

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10332



More information about the Gcc-prs mailing list