Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix template instantiation of UDLs #45

Merged
merged 1 commit into from
Sep 8, 2022

Commits on Sep 7, 2022

  1. Fix template instantiation of UDLs

    Previously, we would instantiate the UDL by marking the function as
    referenced and potentially binding to a temporary; this skipped
    transforming the call when the UDL was dependent on a template
    parameter.
    
    Now, we defer all the work to instantiating the call expression for the
    UDL. This ensures that constant evaluation occurs at compile time
    rather than deferring until runtime.
    
    Fixes Issue 54578.
    AaronBallman authored and Javier-varez committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    c7a8952 View commit details
    Browse the repository at this point in the history