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
Fix PR c++/69139 (deduction failure with trailing return type)
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-60245.C
blob
803a2299677d8726777e83c742423d4ce3e9ad9c
1
// PR c++/60245
2
// { dg-do compile { target c++11 } }
3
4
constexpr int Apply(const int in, int (*f)(const int&)) { return f(in); }
5
6
using Foo = int;
7
static constexpr int id(const Foo& i) { return i; }
8
static constexpr int results1 = Apply(0, &id);