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
PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
rtti
/
template1.C
blob
e2a03766fbb57375266e535e582abb639420f4f7
1
// PR c++/49387
2
3
#include <typeinfo>
4
5
struct ResourceMonitorClient { };
6
7
template <typename T> struct ResourcePool : public ResourceMonitorClient {
8
virtual ~ResourcePool() { }
9
};
10
11
template <typename T> struct BaseWriter {
12
13
BaseWriter() {
14
typeid(ResourcePool<int>*);
15
}
16
17
virtual void run() {
18
ResourcePool<int> pool;
19
}
20
21
};
22
23
BaseWriter<void> b;