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
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
overload3.C
blob
ec48fbb90707fe5e6d4c64af8a63465816bd50c3
1
// PR c++/16870
2
3
struct A
4
{
5
int operator[](int) const;
6
};
7
8
template<int> A foo();
9
10
A bar(A(*)());
11
12
template<int> int baz() { return (bar(&foo<0>))[0]; }
13
14
template int baz<0>();