[PATCH] D33833: Fix PR 33189: Clang assertion on template destructor declaration

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 23 15:46:59 PDT 2017


rsmith accepted this revision.
rsmith added inline comments.
This revision is now accepted and ready to land.


================
Comment at: test/SemaCXX/PR33189.cpp:1-7
+// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
+
+class U
+{
+  template <class T>
+  ~U() { } // expected-error{{destructor cannot be declared as a template}}
+};
----------------
Please fold this into an existing test file, perhaps `test/SemaTemplate/destructor-template.cpp`?


https://reviews.llvm.org/D33833





More information about the cfe-commits mailing list