Skip to content

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