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
Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
two-stage2.C
blob
67d8ab521132a4241da349c6af963195a467aaa6
1
// { dg-do compile }
2
// PR c++/2922
3
4
char& f(char);
5
6
template<class T>
7
void g(T t)
8
{
9
char& c1 = f(1); // not dependent
10
char& c2 = f(t); // dependent
11
}
12
13
int&f (int);
14
15
int main()
16
{
17
g(2); // two f(char)
18
g('a'); // two f(char)
19
}