From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27885 invoked by alias); 17 Feb 2004 11:16:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 27862 invoked by uid 48); 17 Feb 2004 11:16:16 -0000 Date: Tue, 17 Feb 2004 11:16:00 -0000 From: "thome at lix dot polytechnique dot fr" To: gcc-bugs@gcc.gnu.org Message-ID: <20040217111611.14173.thome@lix.polytechnique.fr> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libstdc++/14173] New: cvs20040211: -fpack-struct crashes on hello_world.cpp X-Bugzilla-Reason: CC X-SW-Source: 2004-02/txt/msg01698.txt.bz2 List-Id: g++ -fpack-struct hello.cpp ices within libstdc++ when compiling: #include int main() { std::cout << "Hello, world\n"; return 0; } localhost : ~ $ g++ -c -fpack-struct hello.cpp In file included from /localdisk/thome/Packages/gcc-3.4-20040211/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/ios:49, from /localdisk/thome/Packages/gcc-3.4-20040211/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/ostream:45, from /localdisk/thome/Packages/gcc-3.4-20040211/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/iostream:45, from hello.cpp:1: /localdisk/thome/Packages/gcc-3.4-20040211/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/bits/ios_base.h: In member function `std::_Ios_Fmtflags std::ios_base::setf(std::_Ios_Fmtflags)': /localdisk/thome/Packages/gcc-3.4-20040211/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/bits/ios_base.h:535: error: cannot bind packed field `((std::ios_base*)this)->std::ios_base::_M_flags' to `std::_Ios_Fmtflags&' /localdisk/thome/Packages/gcc-3.4-20040211/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/bits/ios_base.h: In member function `std::_Ios_Fmtflags std::ios_base::setf(std::_Ios_Fmtflags, std::_Ios_Fmtflags)': /localdisk/thome/Packages/gcc-3.4-20040211/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/bits/ios_base.h:552: error: cannot bind packed field `((std::ios_base*)this)->std::ios_base::_M_flags' to `std::_Ios_Fmtflags&' /localdisk/thome/Packages/gcc-3.4-20040211/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/bits/ios_base.h:553: error: cannot bind packed field `((std::ios_base*)this)->std::ios_base::_M_flags' to `std::_Ios_Fmtflags&' /localdisk/thome/Packages/gcc-3.4-20040211/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/bits/ios_base.h: In member function `void std::ios_base::unsetf(std::_Ios_Fmtflags)': /localdisk/thome/Packages/gcc-3.4-20040211/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/bits/ios_base.h:564: error: cannot bind packed field `((std::ios_base*)this)->std::ios_base::_M_flags' to `std::_Ios_Fmtflags&' g++: Internal error: Segmentation fault (program cc1plus) Please submit a full bug report. See for instructions. -- Summary: cvs20040211: -fpack-struct crashes on hello_world.cpp Product: gcc Version: 3.4.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: thome at lix dot polytechnique dot fr CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14173