forked from OSchip/llvm-project
7 lines
246 B
C++
7 lines
246 B
C++
|
// RUN: %clang_cc1 -fsyntax-only %s -std=c++98 2>&1 | FileCheck %s
|
||
|
|
||
|
namespace PR14342 {
|
||
|
template<typename T, char a> struct X {};
|
||
|
X<int, 1> x = X<long, 257>();
|
||
|
// CHECK: error: no viable conversion from 'X<long, [...]>' to 'X<int, [...]>'
|
||
|
}
|