Skip to content

Bugfix: lowering of variadic templates of functions #905

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

Merged
merged 2 commits into from
Jan 1, 2024

Conversation

MaxSagebaum
Copy link
Contributor

@MaxSagebaum MaxSagebaum commented Dec 21, 2023

Resolves #875

Minimal example: https://cpp2.godbolt.org/z/1bGGanfnr

x: <Ts...: type> type = { 
    func: () = {}
}

Error:

main.cpp2:2:36: error: qualifier contains unexpanded parameter pack 'Ts'
    2 |     template <typename ...Ts> auto x<Ts>::func() -> void{}
      |                                    ^

Correct code:

 template <typename ...Ts> auto x<Ts...>::func() -> void{}

@JohelEGP
Copy link
Contributor

JohelEGP commented Dec 21, 2023

Please, edit the opening comment with "Resolves #875".

@hsutter hsutter merged commit c9a007c into hsutter:main Jan 1, 2024
@hsutter
Copy link
Owner

hsutter commented Jan 1, 2024

Thanks!

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.

[BUG] Missing ellipsis of pack in _qualified-id_ of definition
3 participants