clang doesn't instantiate constexpr functions where necessary during overload resolution #12223
Closed
Description
| Bugzilla Link | 11851 |
| Resolution | FIXED |
| Resolved on | Nov 06, 2012 19:15 |
| Version | unspecified |
| OS | All |
| CC | @jckarter,@DougGregor,@zygoloid |
Extended Description
Testcase:
template constexpr int f() { return x; }
template void ovf(int (&x)[f()]);
void f() { int x[10]; ovf<10>(x); }
As far as I can tell, this is valid C++11.
Activity