Hi Eljay! I think the problem is in new auto_ptr, which differs from previous releases. The testcase works fine with gcc 3.2. Here are my dependencies: autoptr.o: autoptr.cpp \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/memory \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/bits/stl_algobase.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/i386-pc-solaris2.8/bits/c++config.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/i386-pc-solaris2.8/bits/os_defines.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/cstring \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/cstddef \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/include/stddef.h \ /usr/include/string.h /usr/include/iso/string_iso.h \ /usr/include/sys/feature_tests.h /usr/include/sys/isa_defs.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/climits \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/include/limits.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/include/syslimits.h \ /usr/include/iso/limits_iso.h /usr/include/sys/int_limits.h \ /usr/include/sys/unistd.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/cstdlib \ /usr/include/stdlib.h /usr/include/iso/stdlib_iso.h \ /usr/include/sys/wait.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/include/sys/types.h \ /usr/include/sys/machtypes.h /usr/include/ia32/sys/machtypes.h \ /usr/include/sys/int_types.h /usr/include/sys/select.h \ /usr/include/sys/time.h /usr/include/time.h /usr/include/iso/time_iso.h \ /usr/include/sys/time_impl.h /usr/include/sys/resource.h \ /usr/include/sys/siginfo.h /usr/include/sys/machsig.h \ /usr/include/vm/faultcode.h /usr/include/sys/procset.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/new \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/exception \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/iosfwd \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/i386-pc-solaris2.8/bits/c++locale.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/clocale \ /usr/include/locale.h /usr/include/iso/locale_iso.h \ /usr/include/libintl.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/cstdio \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/include/stdio.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/include/stdarg.h \ /usr/include/iso/stdio_iso.h /usr/include/sys/va_list.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/include/stdio_tag.h \ /usr/include/stdio_impl.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/i386-pc-solaris2.8/bits/c++io.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/i386-pc-solaris2.8/bits/gthr.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/i386-pc-solaris2.8/bits/gthr-default.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/include/pthread.h \ /usr/include/sched.h /usr/include/unistd.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/cctype \ /usr/include/ctype.h /usr/include/iso/ctype_iso.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/bits/stringfwd.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/bits/postypes.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/cwchar \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/ctime \ /usr/include/wchar.h /usr/include/iso/wchar_iso.h \ /usr/include/wchar_impl.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/bits/functexcept.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/exception_defines.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/bits/stl_pair.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/bits/type_traits.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/bits/stl_iterator_base_types.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/bits/stl_iterator_base_funcs.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/bits/concept_check.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/bits/stl_iterator.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/debug/debug.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/cassert \ /usr/include/assert.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/bits/allocator.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/i386-pc-solaris2.8/bits/c++allocator.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/ext/new_allocator.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/bits/stl_construct.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/bits/stl_uninitialized.h \ /export/home/opt/AESgcc3.4/bin/../lib/gcc/i386-pc-solaris2.8/3.4.0/../../../../include/c++/3.4.0/bits/stl_raw_storage_iter.h ---- Lev Assinovsky Aelita Software Corporation (now is a part of Quest Software) O&S InTrust Framework Division, Team Leader ICQ# 165072909 > -----Original Message----- > From: Eljay Love-Jensen [mailto:eljay@xxxxxxxxx] > Sent: Tuesday, June 08, 2004 3:49 PM > To: Lev Assinovsky; Gcc-Help (E-mail) > Subject: Re: Is it a bug (gcc 3.4)? > > > Hi Lev, > > Hmm, your code worked for me on GCC 3.3.1 under Cygwin / > WinNT5.1sp1a. I > don't have 3.4.0 at my fingertips yet. > > You are using GCC 3.4.0. Did your code work for you in > previous versions > of GCC? Is it possible that you are using an outdated or > incorrect version > of <memory>? > > $ gcc --version > gcc (GCC) 3.3.1 (cygming special) > Copyright (C) 2003 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. > There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A > PARTICULAR PURPOSE. > > $ g++ -M ap.cpp > ap.d > > $ cat ap.d > > ap.o: ap.cpp \ > /usr/include/c++/3.3.1/memory \ > /usr/include/c++/3.3.1/bits/stl_algobase.h \ > /usr/include/c++/3.3.1/i686-pc-cygwin/bits/c++config.h \ > /usr/include/c++/3.3.1/i686-pc-cygwin/bits/os_defines.h \ > /usr/include/c++/3.3.1/cstring \ > /usr/include/c++/3.3.1/cstddef \ > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stddef.h \ > /usr/include/string.h \ > /usr/include/_ansi.h \ > /usr/include/newlib.h \ > /usr/include/sys/config.h \ > /usr/include/machine/ieeefp.h \ > /usr/include/cygwin/config.h \ > /usr/include/sys/reent.h \ > /usr/include/sys/_types.h \ > /usr/include/c++/3.3.1/climits \ > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/limits.h \ > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/syslimits.h \ > /usr/include/limits.h \ > /usr/include/c++/3.3.1/cstdlib \ > /usr/include/stdlib.h \ > /usr/include/machine/stdlib.h \ > /usr/include/alloca.h \ > /usr/include/c++/3.3.1/new \ > /usr/include/c++/3.3.1/exception \ > /usr/include/c++/3.3.1/iosfwd \ > /usr/include/c++/3.3.1/i686-pc-cygwin/bits/c++locale.h \ > /usr/include/c++/3.3.1/clocale \ > /usr/include/locale.h \ > /usr/include/c++/3.3.1/cctype \ > /usr/include/ctype.h \ > /usr/include/c++/3.3.1/bits/stringfwd.h \ > /usr/include/c++/3.3.1/bits/fpos.h \ > /usr/include/c++/3.3.1/i686-pc-cygwin/bits/c++io.h \ > /usr/include/c++/3.3.1/cstdio \ > /usr/include/stdio.h \ > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include/stdarg.h \ > /usr/include/sys/types.h \ > /usr/include/machine/types.h \ > /usr/include/sys/features.h \ > /usr/include/cygwin/types.h \ > /usr/include/sys/sysmacros.h \ > /usr/include/stdint.h \ > /usr/include/sys/stdio.h \ > /usr/include/c++/3.3.1/i686-pc-cygwin/bits/gthr.h \ > /usr/include/c++/3.3.1/i686-pc-cygwin/bits/gthr-default.h \ > /usr/include/pthread.h \ > /usr/include/signal.h \ > /usr/include/sys/signal.h \ > /usr/include/cygwin/signal.h \ > /usr/include/sched.h \ > /usr/include/time.h \ > /usr/include/machine/time.h \ > /usr/include/unistd.h \ > /usr/include/sys/unistd.h \ > /usr/include/getopt.h \ > /usr/include/c++/3.3.1/cwchar \ > /usr/include/c++/3.3.1/ctime \ > /usr/include/wchar.h \ > /usr/include/c++/3.3.1/bits/functexcept.h \ > /usr/include/c++/3.3.1/exception_defines.h \ > /usr/include/c++/3.3.1/bits/stl_pair.h \ > /usr/include/c++/3.3.1/bits/type_traits.h \ > /usr/include/c++/3.3.1/bits/stl_iterator_base_types.h \ > /usr/include/c++/3.3.1/bits/stl_iterator_base_funcs.h \ > /usr/include/c++/3.3.1/bits/concept_check.h \ > /usr/include/c++/3.3.1/bits/stl_iterator.h \ > /usr/include/c++/3.3.1/bits/stl_alloc.h \ > /usr/include/c++/3.3.1/bits/stl_threads.h \ > /usr/include/c++/3.3.1/i686-pc-cygwin/bits/atomicity.h \ > /usr/include/c++/3.3.1/bits/stl_construct.h \ > /usr/include/c++/3.3.1/bits/stl_uninitialized.h \ > /usr/include/c++/3.3.1/bits/stl_raw_storage_iter.h > > --Eljay > >