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++/12963] Wrong and misleading warning encourages writing non-portable code


------- Additional Comments From giovannibajo at libero dot it  2004-09-20 16:29 -------
Besides the consistency issue, which is a bug and should be reported elsewhere, 
I do not understand how this encourage writing non-portable code. On the 
contrary, it does *help* it.

Say that you have a program which assumes that char is 16bits, and you port to 
an architecture which has chars with 8bits. Instead of silently failing, you 
will get warnings like this one which would help you catching problems.

I do not think you provided a good rationale of why we should disable such a 
warning. Could you please describe your real-life problem about portability and 
this warning?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |giovannibajo at gcc dot gnu
                   |                            |dot org


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


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