[Github-comments] [geany/geany-plugins] Scope breaks nightly with gcc 8 (#794)

elextr notifications at xxxxx
Thu Nov 29 22:25:38 UTC 2018


> The following could result in undefined behavior:

The following is even more likely to be UB (not just IB):

```
int i1 = 1;
int* ip = &i1;
double* dp = (double*)ip;
int i1 = *((int*)dp);
```

Extra points for explaining where and why its _more_ likely to eat your shorts :grin:.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/794#issuecomment-443016949
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20181129/26304a3d/attachment-0001.html>


More information about the Github-comments mailing list