aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/crash-deduction-guide-access.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/crash-deduction-guide-access.cpp')
-rw-r--r--test/Sema/crash-deduction-guide-access.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Sema/crash-deduction-guide-access.cpp b/test/Sema/crash-deduction-guide-access.cpp
new file mode 100644
index 0000000000..c0203ef8c5
--- /dev/null
+++ b/test/Sema/crash-deduction-guide-access.cpp
@@ -0,0 +1,11 @@
+// RUN: not %clang_cc1 -x c++ -std=c++17 -fsyntax-only %s
+template <typename U>
+class Imp {
+ template <typename F>
+ explicit Imp(F f);
+};
+
+template <typename T>
+class Cls {
+ explicit Imp() : f() {}
+};