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
libobjc: Fix typos
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
crash54.C
blob
89d59ef2c165ba8d518e20bf509ed9570ed168ea
1
// PR c++/42057
2
3
struct A; // { dg-message "forward declaration" }
4
5
struct B
6
{
7
virtual B* foo(A);
8
};
9
10
struct C : virtual B
11
{
12
virtual C* foo(A) { return 0; } // { dg-error "incomplete type" }
13
};
14
15
C c;