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/70371] New: Number added worng


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70371

            Bug ID: 70371
           Summary: Number added worng
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: frankli998 at 163 dot com
  Target Milestone: ---

Created attachment 38067
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38067&action=edit
The file that demonstrate the bug

we user input 2,4 and the final result of sum should be 2468, which I tested on
visual c compiler. But on  TDM-GCC (version 4.9.2, 32 bit, SJLJ), it went
wrong.
A simple code, you can read it in 2 minutes.
Thanks for your work.

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