From: paolo Date: Fri, 3 May 2013 09:35:42 +0000 (+0000) Subject: 2013-05-03 Paolo Carlini X-Git-Tag: upstream/4.9.2~6260 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8910980f6fc44f050be8b8aa9710b3736cdd9625;p=platform%2Fupstream%2Flinaro-gcc.git 2013-05-03 Paolo Carlini PR c++/54318 * g++.dg/cpp0x/pr54318.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198573 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 88ac420..b716353 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2013-05-03 Paolo Carlini + PR c++/54318 + * g++.dg/cpp0x/pr54318.C: New. + +2013-05-03 Paolo Carlini + PR c++/14283 * g++.dg/parse/error51.C: New. * g++.dg/parse/error15.C: Adjust column numbers. diff --git a/gcc/testsuite/g++.dg/cpp0x/pr54318.C b/gcc/testsuite/g++.dg/cpp0x/pr54318.C new file mode 100644 index 0000000..4dac31b --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr54318.C @@ -0,0 +1,24 @@ +// PR c++/54318 +// { dg-do compile { target c++11 } } + +template +struct wrapped +{ + typedef T type; +}; + +template +typename T::type unwrap1(T); + +int unwrap(int); + +template +auto unwrap(T t) -> decltype(unwrap(unwrap1(t))) +{ + return unwrap(unwrap1(t)); +} + +int main() +{ + unwrap(wrapped>()); +}