blob: e2a03766fbb57375266e535e582abb639420f4f7 [file] [log] [blame]
// PR c++/49387
#include <typeinfo>
struct ResourceMonitorClient { };
template <typename T> struct ResourcePool : public ResourceMonitorClient {
virtual ~ResourcePool() { }
};
template <typename T> struct BaseWriter {
BaseWriter() {
typeid(ResourcePool<int>*);
}
virtual void run() {
ResourcePool<int> pool;
}
};
BaseWriter<void> b;