blob: 93ec5d86e6094407da9d817e4c42c1ae7ec6328d [file] [log] [blame]
template <class T> void f()
{
static_cast<int&>(42); // { dg-error "3:invalid .static_cast." }
}