-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
missing compile error for address-of constant data #2130
Comments
Confirmed still a bug in master branch. |
Thanks for looking at the issue!
The code segfault with:
|
You are copying the interface out of the implementation, see #591. |
Thanks! I checked the issue, as mentioned in the issue, the problem is due to
I created a snippet to somewhat illustrate the issue, in case anyone else find it helpful.
|
Segfaults at runtime. Expected behavior is compile error. Address of constant data should be a const pointer.
Thanks to @allochi for discovering this bug.
The text was updated successfully, but these errors were encountered: