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

Segmentation fault? #288

Closed
Carl2 opened this issue Jan 16, 2020 · 1 comment
Closed

Segmentation fault? #288

Carl2 opened this issue Jan 16, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@Carl2
Copy link

Carl2 commented Jan 16, 2020

Hi I was trying out some code on compiler explorer, which worked fine:
https://godbolt.org/z/AYnVxu

Then I tried the same code on cppinsight and got a segmenation fault?
https://cppinsights.io/s/a2e3fe36

Console:

[0x48ec28]
[0x48e854]
[0x48ec28]
[0x48e854]
[0x48ec28]
[0x48e854]
[0x48ec28]
[0x48e854]
[0x48ec28]
[0x48e854]
[0x48ec28]
[0x48e854]
[0x48ec28]
[0x48e854]
[0x48ec28]
[0x48e854]
[0x48ec28]
[0x48e854]
[0x48ec28]
[0x48e854]
[0x48ec28]
[0x48e854]
[0x48ec28]
[0x48e854]
[0x48ec28]
[0x48e854]
[0x48ec28]
[0x48e854]
[0x48ec28]
Segmentation fault (core dumped)

​```
@andreasfertig andreasfertig added the bug Something isn't working label Jan 16, 2020
@andreasfertig
Copy link
Owner

Hello @Carl2,

yes that is in fact a seg fault due to a stack overflow. It was dragged in by a change I made yesterday. Thanks for spotting and reporting it. A fix is on its way.

P.S: Nice piece of code.

Andreas

andreasfertig added a commit that referenced this issue Jan 16, 2020
Fixed #288: Do not expand a decltype expression in a template definit…
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