// RUN: %clang_cc1 -verify %s // an attempt is made to find template argument values that will make P, after // substitution of the deduced values, compatible with A namespace cv_mismatch { template struct X {}; template void f(X); // expected-note {{cannot deduce a type for 'T' that would make 'const T' equal 'volatile int'}} void g() { f(X()); } // expected-error {{no matching}} }