re PR c++/59637 ([c++11] ICE with decltype and destructor call in template)

2014-07-01  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r212205
This commit is contained in:
Paolo Carlini 2014-07-01 17:25:07 +00:00 committed by Paolo Carlini
parent 6ab56804d0
commit 2a4141aa0d
2 changed files with 12 additions and 0 deletions

View 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.

View File

@ -0,0 +1,7 @@
// PR c++/59637
// { dg-do compile { target c++11 } }
template<typename T> void foo(T* p)
{
p->decltype(T{})::~X();
}