blob: a96332047fb84ba473496be0b6dbb804007f3dee [file] [log] [blame]
// PR c++/40373
// { dg-do compile }
struct A;
namespace
{
struct A;
}
struct B {};
template <typename T> void
foo (T t)
{
t.~A (); // { dg-error "does not match destructor name" }
}
void
bar ()
{
foo (B ()); // { dg-bogus "required from here" "" { xfail *-*-* } }
}