------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-29 20:27 ------- This just works just fine with: GNU C++ version 4.1.0 20050822 (experimental) (powerpc-apple-darwin7.9.0) compiled by GNU C version 4.1.0 20050822 (experimental). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Are you using Apple's 4.0.0, if so you should report it to them as I think this is not a bug in the FSF's gcc. [zhivago:~/src/localgccPRs] pinskia% ~/new-fold/bin/g++ t.cc ./a.out[zhivago:~/src/localgccPRs] pinskia% ./a.out Correct behavior: out of range caught, what==: vector::_M_range_check terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check Abort [zhivago:~/src/localgccPRs] pinskia% otool -L a.out a.out: /Users/pinskia/new-fold/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.6.0) /Users/pinskia/new-fold/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 47.1.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.1.3) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23628