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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
error20.C
blob
dab6de40e4f363a051ff0ded7f057bc13a1d6c57
1
// PR c++/34275
2
// { dg-do compile }
3
4
struct A // { dg-message "operator=|no known conversion" }
5
{
6
virtual A foo ();
7
};
8
9
void bar (A& a)
10
{
11
a.foo () = 0; // { dg-error "operand types are 'A' and 'int'" }
12
}