public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9067: vectors of vectors break with -ftrapv
@ 2002-12-27  8:49 paolo
  0 siblings, 0 replies; 2+ messages in thread
From: paolo @ 2002-12-27  8:49 UTC (permalink / raw)
  To: 169862, gcc-bugs, gcc-prs, nobody, vectro

Synopsis: vectors of vectors break with -ftrapv

State-Changed-From-To: open->analyzed
State-Changed-By: paolo
State-Changed-When: Fri Dec 27 08:49:32 2002
State-Changed-Why:
    Confirmed. Seems related to libstdc++/1823, which I can also
    reproduce with gcc3.2.1 (glibc2.3.1, i686-pc-linux-gnu)

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9067


^ permalink raw reply	[flat|nested] 2+ messages in thread

* c++/9067: vectors of vectors break with -ftrapv
@ 2002-12-27  8:26 Matthias Klose
  0 siblings, 0 replies; 2+ messages in thread
From: Matthias Klose @ 2002-12-27  8:26 UTC (permalink / raw)
  To: gcc-gnats, debian-gcc


>Number:         9067
>Category:       c++
>Synopsis:       vectors of vectors break with -ftrapv
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 27 08:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ian Turner <vectro@pipeline.com>
>Release:        3.2.1 (Debian) (Debian unstable)
>Organization:
The Debian Project
>Environment:
System: Debian GNU/Linux (unstable)
Architecture: i686

host: i386-linux
configured with: /mnt/data/gcc-3.1/gcc-3.1-3.1ds2/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=$\(prefix\)/share/man --infodir=$\(prefix\)/share/info --with-gxx-include-dir=$\(prefix\)/include/g++-v3-3.1 --enable-shared --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --enable-clocale=gnu --enable-threads=posix --enable-java-gc=boehm --enable-objc-gc i386-linux
>Description:
[ Reported to the Debian BTS as report #169862.
  Please CC 169862@bugs.debian.org on replies.
  Log of report can be found at http://bugs.debian.org/169862 ]
	

rechecked with 3.2 branch 20021220 and 3.3 branch 20021227

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++ foo.cc -ftrapv -o foo
 
and run, the resultant binary immediately aborts. 

#include <vector> 
 
using namespace std; 
 
typedef vector<int> foo_t; 
 
int main() { 
  vector<foo_t> V(10, foo_t()); 
  return 0; 
} 

>How-To-Repeat:
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-27 16:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-27  8:49 c++/9067: vectors of vectors break with -ftrapv paolo
  -- strict thread matches above, loose matches on Subject: below --
2002-12-27  8:26 Matthias Klose

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).