repo.or.cz
/
official-gcc
/
alias-decl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-07-27 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc/alias-decl.git]
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
error4.C
blob
4f6866ed8eed381185a989ff6c6137468cc38843
1
//PR c++/28740
2
3
struct A { virtual ~A(); };
4
5
struct B : A A {}; // { dg-error "expected|initializer|invalid" }
6
7
A foo(const B &b) // { dg-error "" }
8
{
9
return b;
10
}