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
aarch64: Fix caller saves of VNx2QI [PR116238]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
incomplete4.C
blob
7cff66bdc04d158abb57fd55a77eabbef0c84ee8
1
// PR c++/33501
2
// { dg-do compile }
3
4
class A; // { dg-message "forward declaration" }
5
6
template <typename T> struct X
7
{
8
static int f (T); // { dg-message "initializing" }
9
static const T &make ();
10
};
11
12
int
13
main ()
14
{
15
return X<A>::f (X<A>::make ()); // { dg-error "invalid use of incomplete type" }
16
}