public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/57442] New: ICE in appears_later_in_bb, at tree-ssa-reassoc.c:2891
@ 2013-05-28 18:34 antoine.balestrat at gmail dot com
  2013-05-28 22:35 ` [Bug tree-optimization/57442] [4.9 Regression] " mpolacek at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: antoine.balestrat at gmail dot com @ 2013-05-28 18:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57442

            Bug ID: 57442
           Summary: ICE in appears_later_in_bb, at tree-ssa-reassoc.c:2891
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: antoine.balestrat at gmail dot com

Hello !
Using GCC 4.9.0 as of 20130528 (on a x86_64 box) :

$ cat reassoc.c
short a;
unsigned b;
long c;
int d;

void f(void)
{
    b = a ? : (a = b) - c + (d - (b + b));
}

$ xgcc -O1 reassoc.c
reassoc.c: In function ‘f’:
reassoc.c:6:6: internal compiler error: in appears_later_in_bb, at 
tree-ssa-reassoc.c:2891
 void f(void)
      ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-423300-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue May 28 18:34:59 2013
Return-Path: <gcc-bugs-return-423300-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25276 invoked by alias); 28 May 2013 18:34:58 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 25256 invoked by uid 48); 28 May 2013 18:34:56 -0000
From: "kou4307 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/57443] New: Catured variable hide the parameter if they have the same name in Lambdas
Date: Tue, 28 May 2013 18:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.7.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: kou4307 at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-57443-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-05/txt/msg01973.txt.bz2
Content-length: 886

http://gcc.gnu.org/bugzilla/show_bug.cgi?idW443

            Bug ID: 57443
           Summary: Catured variable hide the parameter if they have the
                    same name in Lambdas
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kou4307 at gmail dot com

Here is the Stack overflow link that i have shared the problem
(http://stackoverflow.com/questions/16798079/captured-variable-hides-passed-variable-in-lambda-how-to-unhide/16798406#16798406)

I will expand the example here

int main()
{
    int a = 1;
    std::cout<<[=,&a](int a,int b){return a+b;}(99,1);
    return 0;
}

Here the output is 2 rather than 100.

as the answer in the link says this problem in present in gcc 4.7.2 and gcc 4.8


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

* [Bug tree-optimization/57442] [4.9 Regression] ICE in appears_later_in_bb, at tree-ssa-reassoc.c:2891
  2013-05-28 18:34 [Bug tree-optimization/57442] New: ICE in appears_later_in_bb, at tree-ssa-reassoc.c:2891 antoine.balestrat at gmail dot com
@ 2013-05-28 22:35 ` mpolacek at gcc dot gnu.org
  2013-06-01 10:51 ` Joost.VandeVondele at mat dot ethz.ch
  2013-09-23  9:09 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-05-28 22:35 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57442

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-05-28
                 CC|                            |eraman at gcc dot gnu.org,
                   |                            |mpolacek at gcc dot gnu.org
      Known to work|                            |4.8.1
   Target Milestone|---                         |4.9.0
            Summary|ICE in appears_later_in_bb, |[4.9 Regression] ICE in
                   |at tree-ssa-reassoc.c:2891  |appears_later_in_bb, at
                   |                            |tree-ssa-reassoc.c:2891
     Ever confirmed|0                           |1
      Known to fail|                            |4.9.0

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.  Started with http://gcc.gnu.org/r199385


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

* [Bug tree-optimization/57442] [4.9 Regression] ICE in appears_later_in_bb, at tree-ssa-reassoc.c:2891
  2013-05-28 18:34 [Bug tree-optimization/57442] New: ICE in appears_later_in_bb, at tree-ssa-reassoc.c:2891 antoine.balestrat at gmail dot com
  2013-05-28 22:35 ` [Bug tree-optimization/57442] [4.9 Regression] " mpolacek at gcc dot gnu.org
@ 2013-06-01 10:51 ` Joost.VandeVondele at mat dot ethz.ch
  2013-09-23  9:09 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2013-06-01 10:51 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57442

Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-p
                   |                            |atches/2013-05/msg01688.htm
                   |                            |l
                 CC|                            |Joost.VandeVondele at mat dot ethz
                   |                            |.ch

--- Comment #2 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> ---
patch posted and OK'ed


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

* [Bug tree-optimization/57442] [4.9 Regression] ICE in appears_later_in_bb, at tree-ssa-reassoc.c:2891
  2013-05-28 18:34 [Bug tree-optimization/57442] New: ICE in appears_later_in_bb, at tree-ssa-reassoc.c:2891 antoine.balestrat at gmail dot com
  2013-05-28 22:35 ` [Bug tree-optimization/57442] [4.9 Regression] " mpolacek at gcc dot gnu.org
  2013-06-01 10:51 ` Joost.VandeVondele at mat dot ethz.ch
@ 2013-09-23  9:09 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-09-23  9:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57442

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
And fixed.


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

end of thread, other threads:[~2013-09-23  9:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-28 18:34 [Bug tree-optimization/57442] New: ICE in appears_later_in_bb, at tree-ssa-reassoc.c:2891 antoine.balestrat at gmail dot com
2013-05-28 22:35 ` [Bug tree-optimization/57442] [4.9 Regression] " mpolacek at gcc dot gnu.org
2013-06-01 10:51 ` Joost.VandeVondele at mat dot ethz.ch
2013-09-23  9:09 ` rguenth at gcc dot gnu.org

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