Skip to content

clang doesn't instantiate constexpr functions where necessary during overload resolution #12223

Closed
@efriedma-quic

Description

@efriedma-quic
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.

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillac++11

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions