This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/14173] New: cvs20040211: -fpack-struct crashes on hello_world.cpp
- From: "thome at lix dot polytechnique dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Feb 2004 11:16:16 -0000
- Subject: [Bug libstdc++/14173] New: cvs20040211: -fpack-struct crashes on hello_world.cpp
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
g++ -fpack-struct hello.cpp ices within libstdc++ when compiling:
#include <iostream>
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 <URL:http://gcc.gnu.org/bugs.html> 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