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
/
nontype1.C
blob
29dff3639745940efe79f01b92a592ed6df13519
1
// { dg-do compile { target c++11 } }
2
3
struct L { constexpr operator int() const { return 0; } };
4
constexpr L LVar{};
5
6
template<const L&> int *f() { return 0; }
7
template<int> char *f();
8
9
auto r = f<LVar>(); // { dg-error "ambiguous" }