
Any of these template argument kinds can be represented with an expression, so accept them in this constructor. Patch by Balaji Iyer! rdar://41459965 Differential revision: https://reviews.llvm.org/D49766 llvm-svn: 338338
8 lines
155 B
Plaintext
8 lines
155 B
Plaintext
// RUN: %clang_cc1 -fsyntax-only -std=c++17 -verify %s
|
|
// expected-no-diagnostics
|
|
template <typename a, int* = nullptr>
|
|
struct e {
|
|
e(a) {}
|
|
};
|
|
e c(0);
|