[Bug c++/49651] New: [C++0x] nested lambdas and -O3 produced incorrect integer variable increments

2011-07-05 Thread pedro.larroy at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49651 Summary: [C++0x] nested lambdas and -O3 produced incorrect integer variable increments Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: major Priority: P3

[Bug c++/49651] [C++0x] nested lambdas and -O3 produced incorrect integer variable increments

2011-07-05 Thread pedro.larroy at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49651 --- Comment #1 from Pedro Larroy 2011-07-05 20:30:13 UTC --- I think I'm able to reproduce with the following: the output spotted is: run.for_each.a: 20633 run.a: 20634 1 for_each.a: 20631 1 for_each.a: 20632 Compiled with: g++ -Wall -std=c++

[Bug c++/49651] [C++0x] nested lambdas and -O3 produced incorrect integer variable increments

2011-07-05 Thread pedro.larroy at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49651 --- Comment #3 from Pedro Larroy 2011-07-05 22:24:26 UTC --- (In reply to comment #2) > Can you produce a testcase that aborts/fails if the problem occurs? Otherwise > I > seem to need to inspect thousands of lines to look for non-consecutive va

[Bug tree-optimization/49651] [4.4/4.5 Regression] nested lambdas and -O3 produced incorrect integer variable increments

2011-08-01 Thread pedro.larroy at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49651 --- Comment #14 from Pedro Larroy 2011-08-01 15:59:23 UTC --- (In reply to comment #13) > Fixed for 4.6.2 and trunk sofar. great! thanks.