Skip to content

Conversation

davmac314
Copy link
Contributor

For constexpr functions, the definition may be found in a separate header to a declaration. For evaluation purposes the definition is needed; therefore, when resolving a function call, select the definition in favour of the declaration, even if it comes from the index.

Fixes #1263.

…1263)

For constexpr functions, the definition may be found in a separate
header to a declaration. For evaluation purposes the definition is
needed; therefore, when resolving a function call, select the definition
in favour of the declaration, even if it comes from the index.
@i-garrison
Copy link
Contributor

I confirm this change fixes the issue indicated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A constexpr function definiton in a header is ignored if declaration visible in different file
2 participants