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

Call of template <typename T> void fun (T&& t) { }; leads to segfault #298

Closed
rrika opened this issue Apr 5, 2020 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@rrika
Copy link

rrika commented Apr 5, 2020

template <typename T> void fun (T&& t) { };
void test() { fun(1); }

https://cppinsights.io/s/4939edc0

@andreasfertig
Copy link
Owner

Hello @rrika,

thank you for reporting this issue. I haven't figured out how to fix it yet. However, as a quick fix, in case you like to see the result, remove the semi-colon at the end of line 1.

Andreas

@andreasfertig andreasfertig added the bug Something isn't working label Apr 5, 2020
andreasfertig added a commit that referenced this issue Apr 7, 2020
Fixed #298: Handle additional semi at the end of a function template.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants