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