]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/59637 ([c++11] ICE with decltype and destructor call in template)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 1 Jul 2014 17:25:07 +0000 (17:25 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 1 Jul 2014 17:25:07 +0000 (17:25 +0000)
2014-07-01  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59637
* g++.dg/cpp0x/decltype60.C: New.

From-SVN: r212205

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

index e0133116b91c65febb8672a27f7250a2c3c2c571..229b3c8d5904b42fe5a80494af8ba5b144ff41cf 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-01  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/59637
+       * g++.dg/cpp0x/decltype60.C: New.
+
 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        * gcc.target/aarch64/simd/vcage_f64.c: New test.
diff --git a/gcc/testsuite/g++.dg/cpp0x/decltype60.C b/gcc/testsuite/g++.dg/cpp0x/decltype60.C
new file mode 100644 (file)
index 0000000..504f5d1
--- /dev/null
@@ -0,0 +1,7 @@
+// PR c++/59637
+// { dg-do compile { target c++11 } }
+
+template<typename T> void foo(T* p)
+{
+  p->decltype(T{})::~X();
+}