Created attachment 37396 [details] reproducer for array types The current C++ draft states: [expr.throw]/p2 states: > Evaluating a throw-expression with an operand throws an exception (15.1); the type of the exception object > is determined by removing any top-level cv-qualifiers from the static type of the operand and adjusting the > type from “array of T” or function type T to “pointer to T”. Therefore it should not be possible to catch a function or array by reference. However GCC allows this.
Created attachment 37397 [details] reproducer for function types attached a reproducer for function types.
Confirmed. ICC and clang does not assert in both cases.
*** Bug 112471 has been marked as a duplicate of this bug. ***