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
2017-06-14 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
typeid1.C
blob
6df5f71ff780e8501ed0bad4ecd6dc14f5bd0d7f
1
// PR c++/55878
2
3
#include <typeinfo>
4
5
struct S;
6
7
template <typename T>
8
static bool fn (S *s)
9
{
10
return typeid (*s) == typeid (T);
11
}
12
13
struct S
14
{
15
};
16
17
bool x = fn<S> (__null);