public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* strange warning message with egcs 1.1.2
@ 1999-04-30 23:15 Stefan Seefeld
  1999-04-30 23:15 ` Alexandre Oliva
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Seefeld @ 1999-04-30 23:15 UTC (permalink / raw)
  To: egcs-bugs

I find in quite different contexts the following problem:
The source code snipped

for (clist_t::iterator i = children.begin(); i != children.end(); i++)
  {/*...*/}

produces occasionaly the Warning:

PolyGraphic.cc: In method `PolyGraphic::~PolyGraphic()':
PolyGraphic.cc:40: warning: `class
vector<_CORBA_ObjRef_Var<Graphic,Graphic_Helper>,__default_alloc_template<true,0> > * this' might be
used uninitialized in this function

Here, clist_t is of type vector<...>, but I found the same kind of problem in contexts
where it is a string or a map<...>. Unfortunately I can't give more detailed descriptions
because I didn't figure out what those situations producing the message distinguishes from 
others.

Is this just an erroneous error message or is there really some wrong code produced ?

Best regards,	Stefan

_______________________________________________________              
              
Stefan Seefeld
Departement de Physique
Universite de Montreal
email: seefelds@magellan.umontreal.ca

_______________________________________________________

      ...ich hab' noch einen Koffer in Berlin...
>From khan@xraylith.wisc.EDU Fri Apr 30 23:15:00 1999
From: Mumit Khan <khan@xraylith.wisc.EDU>
To: egcs-bugs@egcs.cygnus.com
Subject: (no subject??)
Date: Fri, 30 Apr 1999 23:15:00 -0000
Message-id: <199904020033.SAA29898@modi.xraylith.wisc.edu>
References: <006101be7c80$75c73440$78ce69c2@dragonfa>
X-SW-Source: 1999-04n/msg00019.html
Content-length: 1986

"Alexey Pialkin" <pialkin@line.ru> writes:
> ecgs version : 2.91.57
> system: cygwin 20.1 on WinNT 4.0 Workstation

egcs 2.91.57 aka 1.1 is quite old. Time to upgrade to egcs-1.1.2. See
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ . One change that
is quite visible is the fact that now the signal handlers in the c++ 
front-end works under Cygwin and it doesn't crash.

> 
> D:\cygnus\cygwin-b20\H-i586-cygwin32\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2
> .91
> .57\cc1plus.exe 1.ii -quiet -dumpbase 1.cc -version -o 1.s
> GNU C++ version egcs-2.91.57 19980901 (egcs-1.1 release) (i586-cygwin32)
> compile
> d by GNU C version egcs-2.91.57 19980901 (egcs-1.1 release).
> 1.cpp:14: parse error before `,'
> 1.cpp:18: parse error before `)'
> 1.cpp:19: `CMap<BASE_CLASS,KEY,VALUE>::operator [](...)' must take exactly
> one argument
> [main]
> D:\cygnus\cygwin-b20\H-i586-cygwin32\lib\gcc-lib\i586-cygwin32\egcs-2.91.
> 57\cc1plus.exe 1002 (0) handle_exceptions: Exception:
> STATUS_ACCESS_VIOLATION
> [main] cc1plus 1002 (0) handle_exceptions: Dumping stack trace to
> cc1plus.exe.core


egcs-1.1.2 says:

Reading specs from
d:/egcs-1.1.2-cygb20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91
.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
$ gcc -c -v foobar.ii
Reading specs from
d:/egcs-1.1.2-cygb20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91
.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)

d:/egcs-1.1.2-cygb20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91
.66/cc1plus.exe foobar.ii -quiet -version -o /tmp/cccd7HhH.s
GNU C++ version egcs-2.91.66 19990314 (egcs-1.1.2 release) (i586-cygwin32)
compiled by GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release).
1.cpp:11: parse error before `,'
1.cpp:14: parse error before `)'
1.cpp:15: `CMap<BASE_CLASS,KEY,VALUE>::operator [](...)' must take
exactly one argument
1.cpp:15: confused by earlier errors, bailing out

It's fixed.

Regards,
Mumit



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

* Re: strange warning message with egcs 1.1.2
  1999-04-30 23:15 strange warning message with egcs 1.1.2 Stefan Seefeld
@ 1999-04-30 23:15 ` Alexandre Oliva
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 1999-04-30 23:15 UTC (permalink / raw)
  To: Stefan Seefeld; +Cc: egcs-bugs

On Apr 29, 1999, Stefan Seefeld <seefelds@MAGELLAN.UMontreal.CA> wrote:

> might be used uninitialized in this function

This warning is emitted in many situations in which it shouldn't, it's 
a known bug it egcs.  I believe it's listed in the `known bugs' page,
but I can't check right now, because my network connection is down.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists



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

end of thread, other threads:[~1999-04-30 23:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-30 23:15 strange warning message with egcs 1.1.2 Stefan Seefeld
1999-04-30 23:15 ` Alexandre Oliva

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).