From: Kai Tietz Date: Fri, 19 Dec 2014 16:47:59 +0000 (+0100) Subject: re PR c++/61198 (Crash when selecting specializations through aliases.) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d427aa2e04fbd6e82166364f619aa1119eeda5ca;p=gcc.git re PR c++/61198 (Crash when selecting specializations through aliases.) PR c++/61198 * g++.dg/template/using30.C: New file. From-SVN: r218956 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5ba1eff2f2b..9c46504032a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-12-19 Kai Tietz + + PR c++/61198 + * g++.dg/template/using30.C: New file. + 2014-12-19 Martin Liska PR ipa/63569 diff --git a/gcc/testsuite/g++.dg/template/using30.C b/gcc/testsuite/g++.dg/template/using30.C new file mode 100644 index 00000000000..17a3c1eaa58 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/using30.C @@ -0,0 +1,24 @@ +// { 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; +} +