From: paolo Date: Wed, 4 Mar 2015 08:32:23 +0000 (+0000) Subject: 2015-03-04 Paolo Carlini X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e0a05ce16d27a8cf0f66434593719538d4dc40fb;p=thirdparty%2Fgcc.git 2015-03-04 Paolo Carlini PR c++/64398 * g++.dg/cpp0x/decltype62.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221174 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d38eb5227681..8700a47a8c18 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-03-04 Paolo Carlini + + PR c++/64398 + * g++.dg/cpp0x/decltype62.C: New. + 2015-03-03 Eric Botcazou * gnat.dg/object_overflow5.adb: New test. diff --git a/gcc/testsuite/g++.dg/cpp0x/decltype62.C b/gcc/testsuite/g++.dg/cpp0x/decltype62.C new file mode 100644 index 000000000000..f2f16065435f --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/decltype62.C @@ -0,0 +1,15 @@ +// PR c++/64398 +// { dg-do compile { target c++11 } } + +template struct template1; + +template // second param required +struct struct1{ + using type1 = decltype(T::x); + using type2 = template1; +}; + +template using alias1 = template1; + +// just for instantiation: +template using alias2 = alias1;