clangでのnoexcept、式が定数式の場合でも0を送出する事がある
@530506 と思ったらバグ報告されていた。https://t.co/eq4rbFhuZy 淡白な回答だなあ。
— roκi (@530506) 2016年12月12日
定義済みのconstexpr関数をop noexcept
へ渡すと0が送出されているが、これは規格準拠の挙動ではない。
The result of the noexcept operator is false if in a potentially-evaluated context the expression would contain a potentially-evaluated call to a function, member function, function pointer, or member function pointer that does not have a non-throwing exception-specification (15.4), *unless the call is a constant expression (5.19)* - [expr.unary.noexcept]p3
因みにGCCでは実装されている。