On Jul 1, 2005, at 11:22 AM, Neil Peterson wrote:
Dear sir/madam,
I'm having a runtime problem with the executable generated by GCC
4.0.0.
This problem has been tested on Mac OS/X 10.4 running GCC 4.0.0, and
Linux (Redhat 9) also running GCC 4.0.0 (and confirmed on Linux using
4.0.1 pre-release dated 6-16-2005).
Linux Configuration:
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ./../gcc-4.0.0/configure -prefix=/usr/gcc-4.0.0
Thread model: posix
gcc version 4.0.0
Build command: g++ -g -save-temps -O0
Can you help me understand what does the following does:
T* data() const { return (T*)(this+1); }
This looks very wrong.
I think you are overwriting or not getting the order variables you
expected and now the order of global variables are different than
before.
Thanks,
Andrew Pinski