new
From-SVN: r35312
This commit is contained in:
parent
9076e2922f
commit
acacca1023
2 changed files with 32 additions and 0 deletions
9
gcc/testsuite/g++.old-deja/g++.pt/builtin.C
Normal file
9
gcc/testsuite/g++.old-deja/g++.pt/builtin.C
Normal 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;
|
||||
}
|
23
gcc/testsuite/g++.old-deja/g++.pt/memtemp98.C
Normal file
23
gcc/testsuite/g++.old-deja/g++.pt/memtemp98.C
Normal 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;
|
Loading…
Add table
Reference in a new issue