[LLVMbugs] [Bug 14502] Arguments inside new operator should be evaluated before operator new

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 3 20:11:27 PST 2012


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

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

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

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> 2012-12-03 22:11:27 CST ---
[expr.new]p18 says "The invocation of the allocation function is
indeterminately sequenced with respect to the evaluations of expressions in the
new-initializer."

If your code is relying on the order of operations here, your code is broken.

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