diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-17 19:51:30 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-17 19:51:30 +0000 |
commit | d85cef5a54074a5f647f45c2218675f7774a909d (patch) | |
tree | c403b5132351f831704082c54f4dda9bb56735ee /test/SemaTemplate/default-expr-arguments.cpp | |
parent | 2bd6b9f298afb16a2aec035ebd7b29af7c5c3da8 (diff) |
Merge uninstantiated default arguments more carefully, and try not to
complain about specializations of member functions that are not
definitions. Fixes PR4995.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82159 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/default-expr-arguments.cpp')
-rw-r--r-- | test/SemaTemplate/default-expr-arguments.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaTemplate/default-expr-arguments.cpp b/test/SemaTemplate/default-expr-arguments.cpp index 74d87e9db9..575283ed8b 100644 --- a/test/SemaTemplate/default-expr-arguments.cpp +++ b/test/SemaTemplate/default-expr-arguments.cpp @@ -1,5 +1,11 @@ // RUN: clang-cc -fsyntax-only -verify %s +template<typename T> +class C { C(int a0 = 0); }; + +template<> +C<char>::C(int a0); + struct S { }; template<typename T> void f1(T a, T b = 10) { } // expected-error{{cannot initialize 'b' with an rvalue of type 'int'}} |