Add test for PR8629

llvm-svn: 124204
This commit is contained in:
Douglas Gregor 2011-01-25 18:11:52 +00:00
parent 70f8e5962a
commit d0d7bf32e3
1 changed files with 36 additions and 0 deletions

View File

@ -59,3 +59,39 @@ template <int x, int y> struct lt {
};
Comp<int, lt> c0;
namespace PR8629 {
template<template<int> class TT> struct X0
{
static void apply();
};
template<int> struct Type { };
template<class T> struct X1
{
template<class U> struct Inner;
template<class U> void g()
{
typedef Inner<U> Init;
X0<Init::template VeryInner>::apply();
}
template<int N> void f ()
{
g<Type<N> >();
}
};
template<class T> template<class U> struct X1<T>::Inner
{
template<int> struct VeryInner {
};
};
struct X1Container
{
X1Container()
{
simplex_.f<0>();
}
X1<double> simplex_;
};
}