re PR c++/61198 (Crash when selecting specializations through aliases.)

PR c++/61198
	* g++.dg/template/using30.C: New file.

From-SVN: r218956
This commit is contained in:
Kai Tietz 2014-12-19 17:47:59 +01:00 committed by Kai Tietz
parent b00f4f15c1
commit d427aa2e04
2 changed files with 29 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-12-19 Kai Tietz <ktietz@redhat.com>
PR c++/61198
* g++.dg/template/using30.C: New file.
2014-12-19 Martin Liska <mliska@suse.cz>
PR ipa/63569

View File

@ -0,0 +1,24 @@
// { dg-do compile }
// PR/61198
template<int herp, typename derp_t>
struct broken
{
template<typename target_t>
using rebind = broken<herp, target_t>;
};
template<typename derp_t>
struct broken<2, derp_t>
{
template<typename target_t>
using rebind = broken<2, target_t>;
};
int main(int argc, char **argv)
{
broken<2, float>::rebind<double> u;
return 0;
}