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
Merge -r 127928:132243 from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
error20.C
blob
3c8e8f22aafbb18a0f44af79021232d8c9c5645f
1
// PR c++/34275
2
// { dg-do compile }
3
4
struct A
5
{ // { dg-error "candidates" }
6
virtual A foo ();
7
};
8
9
void bar (A& a)
10
{
11
a.foo () = 0; // { dg-error "A::foo\\(\\) = 0" }
12
}