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
PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-conv2.C
blob
c64fb3d2fa0c2b63598d3e4caec781ec5fef86c7
1
// { dg-do compile { target c++11 } }
2
3
template <int I> void f();
4
5
struct A { constexpr operator int() { return 24; } };
6
7
template <class T> constexpr void g(T t)
8
{
9
f<t>();
10
}
11
12
int main()
13
{
14
g(A());
15
}