[Bug objc/11277] New: function call stack disorder.

i18rabbit at hotmail dot com gcc-bugzilla@gcc.gnu.org
Sat Jun 21 05:30:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11277

           Summary: function call stack disorder.
           Product: gcc
           Version: 2.95.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: objc
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: i18rabbit@hotmail.com
                CC: gcc-bugs@gcc.gnu.org

The following function call fails:

foo(fgetc(FPOINTER), fgetc(FPOINTER), i);

---

int foo(int x, int y, int i) {
    ...
}

receives the 2nd fgetc() char as "x",
and the 1st fgetc() char as "y".

The following works correctly:

x=fgetc(FPOINTER); y=fgetc(FPOINTER)
foo(x, y, i);



More information about the Gcc-bugs mailing list