From: Paolo Carlini Date: Fri, 19 Dec 2014 17:47:58 +0000 (+0000) Subject: using30.C: Move... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f1f1391ce029d83261560db18bd9c1f442221c5e;p=gcc.git using30.C: Move... 2014-12-19 Paolo Carlini * g++.dg/template/using30.C: Move... * g++.dg/cpp0x/alias-decl-45.C: ... here. From-SVN: r218959 --- diff --git a/gcc/testsuite/g++.dg/cpp0x/alias-decl-45.C b/gcc/testsuite/g++.dg/cpp0x/alias-decl-45.C new file mode 100644 index 00000000000..e3434f51a39 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/alias-decl-45.C @@ -0,0 +1,24 @@ +// PR c++/61198 +// { dg-do compile { target c++11 } } + +template +struct broken +{ + template + using rebind = broken; +}; + +template +struct broken<2, derp_t> +{ + template + using rebind = broken<2, target_t>; +}; + +int main(int argc, char **argv) +{ + broken<2, float>::rebind u; + + return 0; +} + diff --git a/gcc/testsuite/g++.dg/template/using30.C b/gcc/testsuite/g++.dg/template/using30.C deleted file mode 100644 index 17a3c1eaa58..00000000000 --- a/gcc/testsuite/g++.dg/template/using30.C +++ /dev/null @@ -1,24 +0,0 @@ -// { dg-do compile } -// PR/61198 - -template -struct broken -{ - template - using rebind = broken; -}; - -template -struct broken<2, derp_t> -{ - template - using rebind = broken<2, target_t>; -}; - -int main(int argc, char **argv) -{ - broken<2, float>::rebind u; - - return 0; -} -