This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12963] Wrong and misleading warning encourages writing non-portable code
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Sep 2004 16:29:05 -0000
- Subject: [Bug c++/12963] Wrong and misleading warning encourages writing non-portable code
- References: <20031108134219.12963.bagnara@cs.unipr.it>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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