This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/68075] New: Printf is changing the order of values


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]