two issues with unsigned int

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Version: g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3

The first issue is actually a bug. What I did was passing an int by
reference to a void function with an unsigned int by reference as parameter.
The compiler did not complain, instead it produced bullshit code.

The second issue was moronlike behavior. What I did was passing the integer
constant 0 to a function name with two functions associated to it. One was
unsigned name (int) and the other void name (int *). Now the compiler gave
the error that name (0) was ambiguous since he did not know if he should
convert from int to unsigned int or from int to int*.
-- 
View this message in context: http://old.nabble.com/two-issues-with-unsigned-int-tp29621719p29621719.html
Sent from the gcc - Help mailing list archive at Nabble.com.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux