Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

clang does not ignore throw()s within noexcept operator context + crash bonus #51567

Open Quuxplusone opened 2 years ago

Quuxplusone commented 2 years ago
Bugzilla Link PR52600
Status NEW
Importance P normal
Reported by Janez Zemva (janezz55@gmail.com)
Reported on 2021-11-24 16:59:34 -0800
Last modified on 2021-11-24 17:00:20 -0800
Version 13.0
Hardware PC Linux
CC blitzrakete@gmail.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
Fixed by commit(s)
Attachments dispatch-6b9c42.sh (2442 bytes, application/x-shellscript)
Blocks
Blocked by
See also

If exceptions are disabled with -fno-exceptions, gcc will ignore throw()'s in a noexcept() operator context, but not clang.

The example is here:

https://github.com/user1095108/generic/blob/master/dispatch.cpp

Remove #ifndef to reproduce the crash.

Quuxplusone commented 2 years ago

Attached dispatch-6b9c42.sh (2442 bytes, application/x-shellscript): crash file