http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46526
Summary: VTable Problem? Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: nate.kni...@numerica.us Created attachment 22435 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22435 Preprocessed output Both asserts should pass, but one fails. Command: g++-mp-4.6 -std=c++0x -v -g3 -save-temps -Wall expose_bug.cpp -o expose_bug Command output: Using built-in specs. COLLECT_GCC=g++-mp-4.6 COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin10/4.6.0/lto-wrapper Target: x86_64-apple-darwin10 Configured with: ../gcc-4.6-20101113/configure --prefix=/opt/local --build=x86_64-apple-darwin10 --enable-languages=c,c++,objc,obj-c++ --libdir=/opt/local/lib/gcc46 --includedir=/opt/local/include/gcc46 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.6 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.6 --with-gxx-include-dir=/opt/local/include/gcc46/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --enable-stage1-checking --disable-multilib --enable-fully-dynamic-string Thread model: posix gcc version 4.6.0 20101113 (experimental) (GCC) COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.5' '-std=c++0x' '-v' '-g3' '-save-temps' '-Wall' '-o' 'expose_bug' '-shared-libgcc' '-mtune=generic' /opt/local/libexec/gcc/x86_64-apple-darwin10/4.6.0/cc1plus -E -quiet -v -dD -D__DYNAMIC__ expose_bug.cpp -fPIC -mmacosx-version-min=10.6.5 -mtune=generic -std=c++0x -Wall -g3 -fworking-directory -fpch-preprocess -o expose_bug.ii ignoring nonexistent directory "/opt/local/lib/gcc46/gcc/x86_64-apple-darwin10/4.6.0/../../../../../x86_64-apple-darwin10/include" #include "..." search starts here: #include <...> search starts here: /opt/local/include/gcc46/c++/ /opt/local/include/gcc46/c++//x86_64-apple-darwin10 /opt/local/include/gcc46/c++//backward /opt/local/lib/gcc46/gcc/x86_64-apple-darwin10/4.6.0/include /opt/local/include /opt/local/lib/gcc46/gcc/x86_64-apple-darwin10/4.6.0/include-fixed /usr/include /System/Library/Frameworks /Library/Frameworks End of search list. COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.5' '-std=c++0x' '-v' '-g3' '-save-temps' '-Wall' '-o' 'expose_bug' '-shared-libgcc' '-mtune=generic' /opt/local/libexec/gcc/x86_64-apple-darwin10/4.6.0/cc1plus -fpreprocessed expose_bug.ii -fPIC -quiet -dumpbase expose_bug.cpp -mmacosx-version-min=10.6.5 -mtune=generic -auxbase expose_bug -g3 -Wall -std=c++0x -version -o expose_bug.s GNU C++ (GCC) version 4.6.0 20101113 (experimental) (x86_64-apple-darwin10) compiled by GNU C version 4.6.0 20101113 (experimental), GMP version 5.0.1, MPFR version 3.0.0-p8, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C++ (GCC) version 4.6.0 20101113 (experimental) (x86_64-apple-darwin10) compiled by GNU C version 4.6.0 20101113 (experimental), GMP version 5.0.1, MPFR version 3.0.0-p8, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 4b970d796b9f2164104727f632078674 COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.5' '-std=c++0x' '-v' '-g3' '-save-temps' '-Wall' '-o' 'expose_bug' '-shared-libgcc' '-mtune=generic' as -arch x86_64 -force_cpusubtype_ALL -o expose_bug.o expose_bug.s COMPILER_PATH=/opt/local/libexec/gcc/x86_64-apple-darwin10/4.6.0/:/opt/local/libexec/gcc/x86_64-apple-darwin10/4.6.0/:/opt/local/libexec/gcc/x86_64-apple-darwin10/:/opt/local/lib/gcc46/gcc/x86_64-apple-darwin10/4.6.0/:/opt/local/lib/gcc46/gcc/x86_64-apple-darwin10/ LIBRARY_PATH=/opt/local/lib/gcc46/gcc/x86_64-apple-darwin10/4.6.0/:/opt/local/lib/gcc46/gcc/x86_64-apple-darwin10/4.6.0/../../../:/usr/lib/ COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.5' '-std=c++0x' '-v' '-g3' '-save-temps' '-Wall' '-o' 'expose_bug' '-shared-libgcc' '-mtune=generic' /opt/local/libexec/gcc/x86_64-apple-darwin10/4.6.0/collect2 -dynamic -arch x86_64 -macosx_version_min 10.6.5 -weak_reference_mismatches non-weak -o expose_bug -lcrt1.10.5.o -L/opt/local/lib/gcc46/gcc/x86_64-apple-darwin10/4.6.0 -L/opt/local/lib/gcc46/gcc/x86_64-apple-darwin10/4.6.0/../../.. expose_bug.o -lstdc++ -lgcc_ext.10.5 -lgcc -no_compact_unwind -lSystem COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6.5' '-std=c++0x' '-v' '-g3' '-save-temps' '-Wall' '-o' 'expose_bug' '-shared-libgcc' '-mtune=generic'