This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11919] int vs. typedef int bar/signedness of chars


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

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



------- Additional Comments From nathan at gcc dot gnu dot org  2003-08-14 15:14 -------
char, signed char and unsigned char are three distinct types. [3.9.1]/1
char will have the same underlying properties as one of the other two,
but it is still a distinct type.

you are right it is a bug, the typedef should not effect overload
resolution. the char->signed char is an integral conversion, char->int is
an integral promotion (so is preferred)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]