[LLVMbugs] [Bug 10506] instantiation of '0x for-range statements sloshes together temporaries

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Sep 4 16:56:05 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10506

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|                            |WORKSFORME

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> 2011-09-04 18:56:04 CDT ---
Manual tests indicate that this works fine. I've extended the unit test for
temporary cleanups in range-based for to cover the dependent case in r139109.

When the range is dependent, the condition and increment expressions aren't
built until the template is instantiated. When they're built (by
BuildCXXForRangeStmt), ActOnFinishFullExpr is called to clean up the
temopraries.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list