mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-18 22:11:41 +08:00
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:
parent
b00f4f15c1
commit
d427aa2e04
@ -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
|
||||
|
24
gcc/testsuite/g++.dg/template/using30.C
Normal file
24
gcc/testsuite/g++.dg/template/using30.C
Normal 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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user