This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/68075] New: Printf is changing the order of values
- From: "girish.elchuri at smuuthsolutions dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 24 Oct 2015 06:38:15 +0000
- Subject: [Bug c/68075] New: Printf is changing the order of values
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68075
Bug ID: 68075
Summary: Printf is changing the order of values
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: girish.elchuri at smuuthsolutions dot com
Target Milestone: ---
Created attachment 36571
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36571&action=edit
Code that is producing the wrong output.
Look at the following code segment attached herewith. This is giving the
output:
>><<, NULL
>><<, NULL
>><<, NULL
>>ghi<<, 'ghi'
>>def<<, 'def'
>>abc<<, 'abc'
'abc', 'abc', 'abc', 'abc', 'abc', 'abc'
While th expected output is:
>>abc<<, 'abc'
>>def<<, 'def
>>ghi<<, 'ghi'
>><<, NULL
>><<, NULL
>><<, NULL
'abc', 'def', 'ghi', NULL, NULL, NULL
This is a real bug, please fix it.