// The inverse of a transaction-safety conversion cannot be performed with // static_cast. // { dg-options "-fgnu-tm" } typedef void (*TS)() transaction_safe; void f() { static_cast(f); // { dg-error "static_cast" } }