diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2012-10-04 23:48:16 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2012-10-04 23:48:16 +0000 |
commit | 712d3fe13475423f9bd8577fa6aca5f3dd0391cb (patch) | |
tree | 2edcc7fc33d869e12fa55261ab00d53eeae6f45e /gcc | |
parent | 87a52ec1f65f29c71b48c2d9e6508c5d090bf819 (diff) | |
download | gcc-712d3fe13475423f9bd8577fa6aca5f3dd0391cb.zip gcc-712d3fe13475423f9bd8577fa6aca5f3dd0391cb.tar.gz gcc-712d3fe13475423f9bd8577fa6aca5f3dd0391cb.tar.bz2 |
re PR c++/52233 (ICE segmentation fault with using-declaration)
2012-10-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52233
* g++.dg/cpp0x/alias-decl-23.C: New.
From-SVN: r192109
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/alias-decl-23.C | 17 |
2 files changed, 23 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 734d046..b7f585d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,7 +1,12 @@ 2012-10-04 Paolo Carlini <paolo.carlini@oracle.com> + PR c++/52233 + * g++.dg/cpp0x/alias-decl-23.C: New. + +2012-10-04 Paolo Carlini <paolo.carlini@oracle.com> + PR c++/53403 - * g++.dg/template/friend53.C + * g++.dg/template/friend53.C: New. 2012-10-04 Eric Botcazou <ebotcazou@adacore.com> diff --git a/gcc/testsuite/g++.dg/cpp0x/alias-decl-23.C b/gcc/testsuite/g++.dg/cpp0x/alias-decl-23.C new file mode 100644 index 0000000..0e4ba45 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/alias-decl-23.C @@ -0,0 +1,17 @@ +// PR c++/52233 +// { dg-do compile { target c++11 } } + +template <typename t> +struct foo +{ + template <template <typename...> class... xs> + using type = int; +}; + +template <typename t, template <typename...> class... xs> +struct bar +{ + using type = typename foo<t>::template type<xs...>; +}; + +bar<int, foo> x; |