public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* RE: Wow!
@ 2003-09-06 14:59 Lev Assinovsky
  0 siblings, 0 replies; 5+ messages in thread
From: Lev Assinovsky @ 2003-09-06 14:59 UTC (permalink / raw)
  To: Gcc-Bugs (E-mail)

Hi guys!
Today isn't a lucky day for me :)
I made a mistake in my example
trying to show gcc bug.
So there is my bug, not gcc's :)
Sincerely, 
----
Lev Assinovsky
Aelita Software Corporation
O&S Core Division, Programmer
ICQ# 165072909


> -----Original Message-----
> From: Nathan Sidwell [mailto:nathan@codesourcery.com]
> Sent: Saturday, September 06, 2003 4:07 PM
> To: Lev Assinovsky
> Cc: Gcc-Bugs (E-mail)
> Subject: Re: Wow!
> 
> 
> Lev Assinovsky wrote:
> 
> > ---------------- cut here ----------------------------------------
> > What will be printed from f2 with gcc 3.2, gcc 3.3.1?
> > 0!!!!!!!
> > 
> > It is a bug. Isn't it?
> what do you get, what do you think you should get. AFAICT the right
> things happen and 0 is printed.
> 
> nathan
> 
> -- 
> Nathan Sidwell    ::   http://www.codesourcery.com   ::     
> CodeSourcery LLC
>           The voices in my head said this was stupid too
> nathan@codesourcery.com    ::     
> http://www.planetfall.pwp.blueyonder.co.uk
> 
> 
> 


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

* Re: Wow!
  2003-09-06 11:40 Wow! Lev Assinovsky
  2003-09-06 12:07 ` Wow! Nathan Sidwell
@ 2003-09-06 14:40 ` Neil Booth
  1 sibling, 0 replies; 5+ messages in thread
From: Neil Booth @ 2003-09-06 14:40 UTC (permalink / raw)
  To: Lev Assinovsky; +Cc: Gcc-Bugs (E-mail)

Lev Assinovsky wrote:-

> What will be printed from f2 with gcc 3.2, gcc 3.3.1?
> 0!!!!!!!
> 
> It is a bug. Isn't it?

No.

Neil.


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

* RE: Wow!
@ 2003-09-06 12:26 Lev Assinovsky
  0 siblings, 0 replies; 5+ messages in thread
From: Lev Assinovsky @ 2003-09-06 12:26 UTC (permalink / raw)
  To: Nathan Sidwell; +Cc: Gcc-Bugs (E-mail)

I have post e-mail where I brought 
my apologies, but e-mail was not delivered.
Sorry again!
----
Lev Assinovsky
Aelita Software Corporation
O&S Core Division, Programmer
ICQ# 165072909


> -----Original Message-----
> From: Nathan Sidwell [mailto:nathan@codesourcery.com]
> Sent: Saturday, September 06, 2003 4:07 PM
> To: Lev Assinovsky
> Cc: Gcc-Bugs (E-mail)
> Subject: Re: Wow!
> 
> 
> Lev Assinovsky wrote:
> 
> > ---------------- cut here ----------------------------------------
> > What will be printed from f2 with gcc 3.2, gcc 3.3.1?
> > 0!!!!!!!
> > 
> > It is a bug. Isn't it?
> what do you get, what do you think you should get. AFAICT the right
> things happen and 0 is printed.
> 
> nathan
> 
> -- 
> Nathan Sidwell    ::   http://www.codesourcery.com   ::     
> CodeSourcery LLC
>           The voices in my head said this was stupid too
> nathan@codesourcery.com    ::     
> http://www.planetfall.pwp.blueyonder.co.uk
> 
> 
> 


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

* Re: Wow!
  2003-09-06 11:40 Wow! Lev Assinovsky
@ 2003-09-06 12:07 ` Nathan Sidwell
  2003-09-06 14:40 ` Wow! Neil Booth
  1 sibling, 0 replies; 5+ messages in thread
From: Nathan Sidwell @ 2003-09-06 12:07 UTC (permalink / raw)
  To: Lev Assinovsky; +Cc: Gcc-Bugs (E-mail)

Lev Assinovsky wrote:

> ---------------- cut here ----------------------------------------
> What will be printed from f2 with gcc 3.2, gcc 3.3.1?
> 0!!!!!!!
> 
> It is a bug. Isn't it?
what do you get, what do you think you should get. AFAICT the right
things happen and 0 is printed.

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
          The voices in my head said this was stupid too
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



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

* Wow!
@ 2003-09-06 11:40 Lev Assinovsky
  2003-09-06 12:07 ` Wow! Nathan Sidwell
  2003-09-06 14:40 ` Wow! Neil Booth
  0 siblings, 2 replies; 5+ messages in thread
From: Lev Assinovsky @ 2003-09-06 11:40 UTC (permalink / raw)
  To: Gcc-Bugs (E-mail)

Hello all!

How about that:
-------------- cut here ------------------------------------------------
#include <iostream>
using namespace std;

int f1()
{
    return 1;
}

int f2(const int n)
{
    cout << n << endl;
    return 2;
}

int main()
{
    int k=0;
    if ((k = f1() == -1) || (f2(k) == -1))
    {
        cout << "Shouldn't be here" << endl;
    } 
}
---------------- cut here ----------------------------------------
What will be printed from f2 with gcc 3.2, gcc 3.3.1?
0!!!!!!!

It is a bug. Isn't it?
 
----
Lev Assinovsky
Aelita Software Corporation
O&S Core Division, Programmer
ICQ# 165072909


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

end of thread, other threads:[~2003-09-06 14:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-06 14:59 Wow! Lev Assinovsky
  -- strict thread matches above, loose matches on Subject: below --
2003-09-06 12:26 Wow! Lev Assinovsky
2003-09-06 11:40 Wow! Lev Assinovsky
2003-09-06 12:07 ` Wow! Nathan Sidwell
2003-09-06 14:40 ` Wow! Neil Booth

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