blob: 9bdc4b20c48c994f1f292eb2b68af2fbda87e6eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// { dg-do assemble }
// { dg-options "" }
// Test for implicit typename
template <class T>
struct A {
protected:
typedef struct B { } B;
};
template <class T>
struct C { };
template <class T>
struct D : public A <C <T> > {
void f ()
{
B* new_entries = (B *) 0; // { dg-error "'B' was not declared in this scope" "B" }
// { dg-error "'new_entries' was not declared in this scope" "new_entries" { target *-*-* } 18 }
// { dg-error "expected" "exp" { target *-*-* } 18 }
}
};
|