re PR c++/64398 (decltype in different contexts with similar expressions triggers segfault in GCC)
2015-03-04 Paolo Carlini <paolo.carlini@oracle.com> PR c++/64398 * g++.dg/cpp0x/decltype62.C: New. From-SVN: r221174
This commit is contained in:
parent
670654ef11
commit
bd8b8b5cae
|
@ -1,3 +1,8 @@
|
||||||
|
2015-03-04 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
|
PR c++/64398
|
||||||
|
* g++.dg/cpp0x/decltype62.C: New.
|
||||||
|
|
||||||
2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
|
2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
|
||||||
|
|
||||||
* gnat.dg/object_overflow5.adb: New test.
|
* gnat.dg/object_overflow5.adb: New test.
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
// PR c++/64398
|
||||||
|
// { dg-do compile { target c++11 } }
|
||||||
|
|
||||||
|
template<typename T> struct template1;
|
||||||
|
|
||||||
|
template<typename T, typename> // second param required
|
||||||
|
struct struct1{
|
||||||
|
using type1 = decltype(T::x);
|
||||||
|
using type2 = template1<type1>;
|
||||||
|
};
|
||||||
|
|
||||||
|
template<typename T> using alias1 = template1<decltype(T::x)>;
|
||||||
|
|
||||||
|
// just for instantiation:
|
||||||
|
template<typename T> using alias2 = alias1<T>;
|
Loading…
Reference in New Issue