// RUN: %clang_cc1 -fsyntax-only %s -std=c++98 2>&1 | FileCheck %s namespace PR14342 { template struct X {}; X x = X(); // CHECK: error: no viable conversion from 'X' to 'X' } namespace PR15513 { template class A {}; void foo(A<0> &M) { // CHECK: no viable conversion from 'A<[...], (default) x + 1 aka 1>' to 'A<[...], 0>' A<0, 0> N = M; // CHECK: no viable conversion from 'A<0, [...]>' to 'A<1, [...]>' A<1, 1> O = M; } } namespace default_args { template class A {}; void foo(A<0> &M) { // CHECK: no viable conversion from 'A<[...], (default) 1 + 1 aka 2, (default) 2>' to 'A<[...], 0, 0>' A<0, 0, 0> N = M; // CHECK: no viable conversion from 'A<[2 * ...], (default) 2>' to 'A<[2 * ...], 0>' A<0, 2, 0> N2 = M; } } namespace qualifiers { template void foo(void (func(T*)), T*) {} template class vector{}; void bar(const vector*) {} void test(volatile vector* V) { foo(bar, V); } // CHECK: candidate template ignored: deduced conflicting types for parameter 'T' ('const vector<[...]>' vs. 'volatile vector<[...]>') }