Summary: | casting pointers to arrays in c++ produces wrong output when optimizing | ||
---|---|---|---|
Product: | gcc | Reporter: | linuxadmin <linuxadmin> |
Component: | c++ | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | gcc-bugs |
Priority: | P3 | ||
Version: | 4.0.0 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: |
Description
linuxadmin@yandex.ru
2005-02-18 11:52:41 UTC
This code is invalid; you're accessing an object of type uint64_t via a pointer to uint32_t, which is not allowed. Use -fno-strict-aliasing, or use a union. Reopening to ... |