[llvm-bugs] [Bug 38300] Wrong exception deduction for some forms of placement new
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jul 25 07:51:37 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38300
David Blaikie <dblaikie at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dblaikie at gmail.com,
| |richard-llvm at metafoo.co.uk
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from David Blaikie <dblaikie at gmail.com> ---
I'm going to go out on a limb (again, Richard can correct me if I'm wrong here)
and say that Clang's behavior is correct.
The throwing behavior quoted from [expr.new]p7 has no handling/changes in
behavior for "new (nothrow)" - and all the behavior for "new (nothrow)" is
about the underlying operator new call, not the new expression. This code never
gets as far as calling 'operator new' because of that size mismatch.
Looks to me like GCC is buggy here - or at least that the spec is maybe
underspecified/unclear on this case.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180725/44c123ed/attachment.html>
More information about the llvm-bugs
mailing list