http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58943
Bug ID: 58943 Summary: wrong calculation of indirect structure member arithmetic via function call Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: critical Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: Dimitar.Peikov at gmail dot com Created attachment 31124 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31124&action=edit example for failed structure propagation In attached file there is an example of invalid calculation where, a structure with integer is manipulated inside a function call which takes struct as pointer and same integer member is part of arithmetic result operation. The issue was tested on several compilers 4.6.3, 4.7.2, 4.8.1 on different platforms Linux and Windows with same result.