repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
re PR c/89525 (inform messages from -Wbuiltin-declaration-mismatch even with -w)
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb34.C
blob
0d9b474d9e5b07a3657b82534b568d0e0ce139f1
1
// { dg-do assemble }
2
class Base {
3
public:
4
class Bar { public: virtual ~Bar() {} };
5
};
6
7
class Derived : public Base {
8
public:
9
class Bar : public Base::Bar {};
10
};
11
12
template <class T>
13
class XYZ : public T::Bar {
14
};
15
16
void test() {
17
XYZ<Base> b;
18
XYZ<Derived> d;
19
}