OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/47705
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
error23.C
1
// PR c++/29632
2
3
struct nullptr_type {
4
5
nullptr_type ( void ) {}
6
7
template < typename T >
8
operator T* ( void ) const {
9
return ( 0 );
10
}
11
} const nullptr_ob;
12
13
int main ( void ) {
14
0 == nullptr_ob; // { dg-error "match" }
15
}
16
17