--- Comment #2 from eakrohn at cs dot uiowa dot edu 2009-02-17 04:00
---
Problem fixed, didn't realize there was a built in swap that was getting
called. My mistake.
--
eakrohn at cs dot uiowa dot edu changed:
What|Removed |
--- Comment #1 from eakrohn at cs dot uiowa dot edu 2009-02-17 03:53
---
My concern is this function
swap(int *x, int *y){ ... }
with this function call
int x = 5, y = 7;
swap(x,y);
compiles and works just fine. But this function
swap(int *x){ ... }
with this function call
int
rity: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: eakrohn at cs dot uiowa dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39211