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 c++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
pr77496.C
blob
0b21e0cee3936aa4f7f60016e34b551d01f0166a
1
// { dg-do compile }
2
// { dg-options "" }
3
4
template <class x>
5
class z : x
6
{
7
public:
8
bool zz () { return false; }
9
int f () { return zz ? : 1; } // { dg-error "cannot convert" }
10
};
11
12
class t
13
{
14
};
15
16
int
17
main ()
18
{
19
z<t> x;
20
return x.f ();
21
}