http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48547

           Summary: iostream and some other C++ libraries do not work with
                    -fpack-struct
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: jmich...@yahoo.com


Created attachment 23941
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23941
output text from the compiler

iostream and some other C++ libraries do not work with -fpack-struct

this is in 4.5.2, 4.5.3, and 4.7.0.  it's been a problem for quite a long time.

commercial compilers such as Microsoft Visual C++ and Borland do not have a
problem with the equivalent compiler switch.

It would take me a long time to generate a complete list of libraries which
work with this switch and those which don't.

C:\prj\test\mingw-w64\pack-struct>c:\mingw-w32-bin_i686-mingw_20110402\bin\i686-w64-mingw32-g++.exe
-Wall -W -v -save-temps -O   -s -fstack-check -fpack-struct
-static-libgcc  -isystem /libpq/ -isystem /libpq/server/libpq/ -isystem
/prj/fltk/fltk-1.1.10/ -isystem /prj/fltk/fltk-1.1.10/lib/ -isystem
/prj/zlib-1.2.5/ -st
d=c++0x -o pack-struct.exe pack-struct.cpp
-lgcc -lstdc++  2>errgw

Reply via email to