From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14094 invoked by alias); 11 Apr 2003 13:56:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 14073 invoked by uid 71); 11 Apr 2003 13:56:01 -0000 Date: Fri, 11 Apr 2003 13:56:00 -0000 Message-ID: <20030411135601.14072.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Momchil Velikov Subject: Re: c++/10332: Template classes are not instantiated correctly in presense of #pragma pack() Reply-To: Momchil Velikov X-SW-Source: 2003-04/txt/msg00501.txt.bz2 List-Id: The following reply was made to PR c++/10332; it has been noted by GNATS. From: Momchil Velikov To: "Igor A. Goussarov" Cc: ljrittle@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/10332: Template classes are not instantiated correctly in presense of #pragma pack() Date: 11 Apr 2003 16:52:55 +0300 >>>>> "Igor" == Igor A Goussarov 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