From-SVN: r35312
This commit is contained in:
Jason Merrill 2000-07-28 02:08:21 -04:00
parent 9076e2922f
commit acacca1023
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,9 @@
// Bug: Checking whether A depends on template parms, we crash because
// __builtin_va_list lacks TYPE_LANG_SPECIFIC.
// Build don't link:
void f (__builtin_va_list arg)
{
enum { a } A;
}

View file

@ -0,0 +1,23 @@
// Build don't link:
//Purpose:
// Test nested template as template template arg.
//Result:
// Before the patch, got:
// `C' is not a template
template <template <typename S> class T>
struct A
{
T<int> m_t;
};
struct B
{
template <typename V>
struct C
{
V m_v;
};
};
A<B::C> z;