repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
incomplete2.C
blob
bfaf6be310c5f867bcbe528faa0244094c1ffbd9
1
// PR c++/33501
2
// { dg-do compile }
3
4
class A; // { dg-message "forward declaration" }
5
6
int f (A); // { dg-message "initializing" }
7
const A &make ();
8
9
int
10
main ()
11
{
12
return f (make ()); // { dg-error "invalid use of incomplete type" }
13
}