https://bugs.llvm.org/show_bug.cgi?id=38300

David Blaikie <dblai...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dblai...@gmail.com,
                   |                            |richard-l...@metafoo.co.uk
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from David Blaikie <dblai...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to