re PR c++/64100 (A static assert using the the current class in a noexcept test leads...
authorKai Tietz <ktietz@redhat.com>
Wed, 10 Dec 2014 11:26:47 +0000 (12:26 +0100)
committerKai Tietz <ktietz@gcc.gnu.org>
Wed, 10 Dec 2014 11:26:47 +0000 (12:26 +0100)
PR c++/64100
* g++.dg/template/pr64100.C: New file.

From-SVN: r218572

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/pr64100.C [new file with mode: 0644]

index 8d18ec974e0719b9dc5bbc1558f461e4e034ff8f..615bfa7e3477e3b08a9736caea3deae1fd5d24f1 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-10  Kai Tietz  <ktietz@redhat.com>
+
+       PR c++/64100
+       * g++.dg/template/pr64100.C: New file.
+
 2014-12-10  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/64191
diff --git a/gcc/testsuite/g++.dg/template/pr64100.C b/gcc/testsuite/g++.dg/template/pr64100.C
new file mode 100644 (file)
index 0000000..493849f
--- /dev/null
@@ -0,0 +1,9 @@
+// { dg-do compile { target c++11 } }
+
+template<typename> struct foo // { dg-message "note" }
+{ // { dg-error "incomplete type" }
+    static_assert(noexcept(((foo *)1)->~foo()), "");
+}; 
+
+template class foo<int>;
+