blob: 6df5f71ff780e8501ed0bad4ecd6dc14f5bd0d7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// PR c++/55878
#include <typeinfo>
struct S;
template <typename T>
static bool fn (S *s)
{
return typeid (*s) == typeid (T);
}
struct S
{
};
bool x = fn<S> (__null);
|