[LLVMbugs] [Bug 14502] New: Stuff inside operator new should be evaluated first
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Dec 3 18:55:32 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14502
Bug #: 14502
Summary: Stuff inside operator new should be evaluated first
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: wenhan.gu at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Hi all,
When we write "new B(XXX)",
Clang CodeGen will emit 1) "operator new B" first, then 2) "XXX", finally 3)
done the argument preparation and call the "constructor B".
However, we should get 2) -> 1) -> 3).
This does matter when "operator new of B" assumes it will be executed *after*
the argument inside.
Thanks.
--
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