This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17067] New: Miss call constructors in global instances and static members of classes


Hi!

On Unix like platforms with configurations:
Reading specs from /usr/local/lib/gcc/i386-portbld-freebsd4.8/3.4.2/specs
Configured with: ./..//gcc-3.4-20040806/configure --disable-nls --enable-
threads=posix --with-system-zlib --with-libiconv-prefix=/usr/local --program-
suffix=34 --with-gxx-include-dir=/usr/local/lib/gcc/i386-portbld-
freebsd4.8/3.4.2/include/c++/ --disable-shared --prefix=/usr/local i386-portbld-
freebsd4.8
Thread model: posix
gcc version 3.4.2 20040806 (prerelease) [FreeBSD]

and 

Reading specs from /ufs/milan2/gcc-3.4.1/lib/gcc/hppa2.0w-hp-
hpux11.11/3.4.1/specs
Configured with: ./configure --prefix=/ufs/milan2/gcc --with-local-
prefix=/usr/local/bin --with-gnu-as --with-as=/ufs/milan2/binutils/bin/as --
with-gnu-ld=no --with-libiconv-prefix=/usr/local --disable-shared --enable-
threads=posix --disable-nls
Thread model: posix
gcc version 3.4.1

I compile my project with the g++ compiler and it makes bad binaries without 
constructor calls in static members and global instances of classes. It call 
member of class without call constructor before in members of class, which is 
defined as static. The same source code in mingw32 works well. The win32 
configuration is

Reading specs from D:/Develop/DevCpp/bin/../lib/gcc/mingw32/3.4.1/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable
-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --e
nable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-ja
va-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchroniz
ation --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.1 (mingw special)

I can send the source code by email to you, because I don't see any upload 
controls on this Bugzilla page. Please, contact me.

Milan

-- 
           Summary: Miss call constructors in global instances and static
                    members of classes
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rusek at ccs dot cz
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: on UNIX machines
GCC target triplet: i386-portbld-freebsd4.8 and hppa2.0w-hp-hpux11.11


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]