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

--- Comment #5 from bekenn at yopmail dot com 2012-08-06 04:44:17 UTC ---
Created attachment 27948
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27948
Full application showing issue.

Sorry for the wait.  Here is a complete program showing the issue.  Compiled
with:
    g++ -std=gnu++0x -g lambdatest.cpp -o lambdatest.exe

Traces have been added to show the current position of execution.

Expected output:
start
in test_lambda
in Call
in lambda
Adding 5
total: 5
after first call
in test_lambda
in Call
in lambda
Adding 20
total: 25
after second call
in test_lambda
in Call
in lambda
Adding -256
total: -231
after third call

Actual output:
start
in test_lambda
in Call
after first call
in test_lambda
in Call
after second call
in test_lambda
in Call
after third call

Reply via email to