Bug 17255 – Warning when compiling ddmd.backend/ptrntab.c about type-punning

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-03-14T09:51:00Z
Last change time
2017-08-07T13:15:29Z
Assigned to
nobody
Creator
bugzilla

Comments

Comment #0 by bugzilla — 2017-03-14T09:51:20Z
Compiling produces a blizzard of these, all the same: ddmd/backend/ptrntab.c:5773: warning: dereferencing type-punned pointer will break strict-aliasing rules
Comment #1 by github-bugzilla — 2017-03-14T13:16:56Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/a22284b64c92236047b5dbdac26d504d97cc1d5f fix Issue 17255 - Warning when compiling ddmd.backend/ptrntab.c about type-punning https://github.com/dlang/dmd/commit/28b0fb9f2f8e806e5e455c412011f0b369697097 Merge pull request #6624 from WalterBright/fix17255 fix Issue 17255 - Warning when compiling ddmd.backend/ptrntab.c about… merged-on-behalf-of: Daniel Murphy <[email protected]>
Comment #2 by github-bugzilla — 2017-08-07T13:15:29Z
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/a22284b64c92236047b5dbdac26d504d97cc1d5f fix Issue 17255 - Warning when compiling ddmd.backend/ptrntab.c about type-punning https://github.com/dlang/dmd/commit/28b0fb9f2f8e806e5e455c412011f0b369697097 Merge pull request #6624 from WalterBright/fix17255