This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
No warning issued here?
- To: egcs-bugs at cygnus dot com
- Subject: No warning issued here?
- From: Han-Wen Nienhuys <hanwen at cs dot uu dot nl>
- Date: Thu, 22 Apr 1999 02:37:46 -0700 (PDT)
- Reply-To: hanwen at cs dot uu dot nl
void f()
{
int i = i;
}
/*
Problem description:
This compiles without a hitch.
I would expect a warning to be emitted because of the use of i in the
righthand side. Even if this conforms to the C++ standard, this is
likely to be a programming error, so a warning would be in place.
*/
--
Han-Wen Nienhuys, hanwen@cs.uu.nl ** GNU LilyPond - The Music Typesetter
http://www.cs.uu.nl/people/hanwen/lilypond/index.html