[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#169862: g++-3.2: vectors of vectors break with -ftrapv



Package: g++-3.2
Version: 1:3.2.1-0pre3
Severity: important

Not sure if this is a problem with the CPU, the kernel, the compiler, 
or the library. But this seems the most likely candidate. Consider the sample 
program below. When compiled as

g++-3.2 foo.cc -ftrapv -o foo

and run, the resultant binary immediately aborts.

-- Sample program
#include <vector>

using namespace std;

typedef vector<int> foo_t;

int main() {
  vector<foo_t> V(10, foo_t());
  return 0;
}

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux crafter 2.4.19 #1 Fri Sep 27 18:25:53 PDT 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages g++-3.2 depends on:
ii  gcc-3.2                    1:3.2.1-0pre3 The GNU C compiler.
ii  gcc-3.2-base               1:3.2.1-0pre3 The GNU Compiler Collection (base 
ii  libc6                      2.2.5-14.3    GNU C Library: Shared libraries an
ii  libstdc++5-dev             1:3.2.1-0pre3 The GNU stdc++ library version 3 (




Reply to: