This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc/11277] New: function call stack disorder.
- From: "i18rabbit at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jun 2003 05:25:43 -0000
- Subject: [Bug objc/11277] New: function call stack disorder.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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);