[Bug c++/39211] Function pass by reference problem, accepts parameters (int, int) to an (int*, int*) function.

2009-02-16 Thread eakrohn at cs dot uiowa dot edu
--- 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 |

[Bug c++/39211] Function pass by reference problem, accepts parameters (int, int) to an (int*, int*) function.

2009-02-16 Thread eakrohn at cs dot uiowa dot edu
--- 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

[Bug c++/39211] New: Function pass by reference problem, accepts parameters (int, int) to an (int*, int*) function.

2009-02-16 Thread eakrohn at cs dot uiowa dot edu
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