www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/05/01:51:48.1

From: Ron House <house AT usq DOT edu DOT au>
Newsgroups: comp.lang.c++,comp.os.msdos.djgpp
Subject: Re: STL broken?
Date: Tue, 05 Dec 2000 06:42:34 +0000
Organization: University of Queensland
Lines: 36
Message-ID: <3A2C8E5A.1EDCC75C@usq.edu.au>
References: <3A2C3ACD DOT 18F8C1D5 AT usq DOT edu DOT au> <zy_W5.44669$2A2 DOT 2187120 AT news20 DOT bellglobal DOT com> <3A2C8027 DOT 427A293D AT usq DOT edu DOT au> <90i15h$9d$1 AT bob DOT news DOT rcn DOT net>
NNTP-Posting-Host: heracles.usq.edu.au
Mime-Version: 1.0
X-Trace: bunyip.cc.uq.edu.au 975998526 4096 139.86.208.29 (5 Dec 2000 06:42:06 GMT)
X-Complaints-To: news AT uq DOT edu DOT au
NNTP-Posting-Date: 5 Dec 2000 06:42:06 GMT
X-Mailer: Mozilla 3.04 (X11; I; Linux 2.0.36 i586)
X-Original-NNTP-Posting-Host: 139.86.23.17
X-Original-Trace: 5 Dec 2000 16:41:55 +1000, 139.86.23.17
X-Abuse: abuse AT usq DOT edu DOT au
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

naisbodo wrote:

> > Seriously, no, that doesn't fix it. Besides, the error is not a simple
> > undeclared identifier, but a series of messages referring to lines deep
> > in the STL code:

> I myself can make no sense whatsoever of gcc's error messages.  They
> know their errors are cryptic and often even misleading, but they've
> given a higher priority to getting correct code working than correctly
> diagnosing broken code.

As far as I can see, the code is too simple to be broken. Here it is in
its entirety:

#include <vector>
using namespace std;  // Tried with & without this line
main() {
       std::vector<std::vector<int> > i;
       // Tried with & without the "std::"
       return 0;
}

> Please look at gcc's webpage and see if you should report this as a bug
> or not.

Been there, done that. Can't find anything. But it looks like an STL
error to me, because it goes away if only one level of container is
used. As for version, the version file reports: GCC-2.95.2 : GNU C++
compiler. I am wondering if anyone with access to a completely different
compiler and the latest STL might like to try the above program?

-- 
Ron House     house AT usq DOT edu DOT au
              http://www.sci.usq.edu.au/staff/house

A rose grows in the Earth's good soil.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019