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
ipa-cp: Perform operations in the appropriate types (PR 118097)
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
incomplete2.C
blob
bad16020baa4d16c4ac0ac29f2fa6bf3182dc6f1
1
// PR c++/27427
2
// { dg-do compile }
3
4
struct A;
5
6
template<A&> void foo(); // { dg-message "note" }
7
8
A a; // { dg-error "incomplete type" }
9
10
void bar()
11
{
12
foo<a>(); // { dg-error "(no matching function|could not convert)" }
13
}