Skip to content

Incorrect templated static member variable initialization #427

@JHBonarius

Description

@JHBonarius

I tried to help somebody on Stack overflow and got this issue: link

You can see that

template<int val> int MyClass<val>::var = val;

Is only displayed for one of the three instantiations... and that one is mangled up with the endif macro:

#endiint MyClass<9>::var = 9;

Please let me know if you need more information. And thanks for the tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions