// PR c++/33463 namespace std { class type_info {}; } template void foo() { !typeid(void); // { dg-error "!typeid\\(void\\)|candidate is" } // { dg-message "" "match candidate text" { target *-*-* } 10 } }