diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2013-07-18 23:59:50 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2013-07-18 23:59:50 +0000 |
commit | cd37a0b6bbd8d46af116c72537e2129e4a077e5e (patch) | |
tree | c682cc4ed9c76ffda32bff0a50a17d826a158922 /test/CXX/special | |
parent | c4ef9485252c6a408acb70aac5a153dcd9d860c7 (diff) | |
download | clang-cd37a0b6bbd8d46af116c72537e2129e4a077e5e.tar.gz |
Fix crash-on-invalid with inheriting constructor.
Fixes PR16656.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186631 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/special')
-rw-r--r-- | test/CXX/special/class.inhctor/p8.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CXX/special/class.inhctor/p8.cpp b/test/CXX/special/class.inhctor/p8.cpp index 0c857382e3..effc2c3bca 100644 --- a/test/CXX/special/class.inhctor/p8.cpp +++ b/test/CXX/special/class.inhctor/p8.cpp @@ -1,6 +1,5 @@ // RUN: %clang_cc1 -std=c++11 -verify %s -// expected-no-diagnostics struct A { constexpr A(const int&) : rval(false) {} constexpr A(const int&&) : rval(true) {} @@ -28,3 +27,6 @@ struct D : C { using C::C; }; static_assert(D(123).v == 123, ""); + +// FIXME: This diagnostic sucks. +template<typename T> constexpr D::D(T t) : C(t) {} // expected-error {{definition of implicitly declared function}} |