public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: Denisss <denisss025@gmail.com>
To: gcc-bugs@gcc.gnu.org
Subject: is it a bug?
Date: Fri, 14 Mar 2008 17:58:00 -0000	[thread overview]
Message-ID: <1a57b36d0803141057t5c8b89er4c3f73df2f3f2045@mail.gmail.com> (raw)
In-Reply-To: <1a57b36d0803141049q771b54d2gf886f3dc2788309d@mail.gmail.com>

Hello!

I don't know if it's a bug, but I send You a report.

I've got something like that in my code:
bool t = false;
if (t = true)
...

When I compile this with -Wall flag, compiler must show warning, but it doesn't!

g++ -Wall -o mytry mytry.cpp

When I change my code to something like that:
int t = 0;
if (t = 1)
...

GCC shows warning for the second line.

i586-mandriva-linux-gnu

../configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib
--mandir=/usr/share/man --infodir=/usr/share/info
--enable-checking=release
--enable-languages=c,c++,ada,fortran,objc,obj-c++,java
--host=i586-mandriva-linux-gnu --with-cpu=generic --with-system-zlib
--enable-threads=posix --enable-shared --enable-long-long
--enable-__cxa_atexit__ --disable-lubunwind-exceptions
--enable-clocale=gnu --enable-java-awt=gtk
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--enable-gtk-cairo --enable-libjava-multilib --enable-ssp
--disable-libssp
 gcc ver. 4.2.2 20071128 (prerelease) (4.2.2-3.1mdv2008.0)

Thanks.


       reply	other threads:[~2008-03-14 17:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1a57b36d0803141049q771b54d2gf886f3dc2788309d@mail.gmail.com>
2008-03-14 17:58 ` Denisss [this message]
2005-09-28  7:36 IS IT A BUG ???? Srujan.K.V.S.
2005-10-08  1:56 ` Jim Wilson
  -- strict thread matches above, loose matches on Subject: below --
2003-08-09 10:31 Is it a bug? Lev Assinovsky
2001-05-22  2:28 is " Arne Moe
1999-08-26  5:37 Is " Magnus Benngard
1998-04-30 10:25 is " JC Loredo-Osti
1998-04-30 13:15 ` Joe Buck
1998-04-30 13:15   ` JC Loredo-Osti
1997-12-08  3:17 Is it a bug ? knizhnik
1997-12-08 12:01 ` Alexandre Oliva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1a57b36d0803141057t5c8b89er4c3f73df2f3f2045@mail.gmail.com \
    --to=denisss025@gmail.com \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).