public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/14173] New: cvs20040211: -fpack-struct crashes on hello_world.cpp
@ 2004-02-17 11:16 thome at lix dot polytechnique dot fr
  2004-02-17 16:08 ` [Bug libstdc++/14173] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: thome at lix dot polytechnique dot fr @ 2004-02-17 11:16 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-02-20  9:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-17 11:16 [Bug libstdc++/14173] New: cvs20040211: -fpack-struct crashes on hello_world.cpp thome at lix dot polytechnique dot fr
2004-02-17 16:08 ` [Bug libstdc++/14173] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-02-19  3:17 ` [Bug c++/14173] [3.4/3.5 Regression] " reichelt at gcc dot gnu dot org
2004-02-20  2:41 ` giovannibajo at libero dot it
2004-02-20  7:10 ` mmitchel at gcc dot gnu dot org
2004-02-20  8:57 ` cvs-commit at gcc dot gnu dot org
2004-02-20  9:03 ` cvs-commit at gcc dot gnu dot org
2004-02-20  9:04 ` mmitchel at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).