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
tree-optimization/116481 - avoid building function_type[]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
auto-fn65.C
blob
78bb004303bd7655d833b0e3e330ad7d8e71f587
1
// PR c++/106893
2
// { dg-do compile { target c++14 } }
3
4
template <typename T>
5
struct CoordTraits
6
{
7
static auto GetX(T const &p) { return 1; }
8
};
9
typedef CoordTraits<int> Traits;
10
static constexpr auto GetX = Traits::GetX;