This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/34389] -Wconversion produces wrong warning
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jul 2008 08:36:52 -0000
- Subject: [Bug c/34389] -Wconversion produces wrong warning
- References: <bug-34389-5307@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from manu at gcc dot gnu dot org 2008-07-30 08:36 -------
This should be mostly fixed except the following testcase in C++:
short mask1(short x)
{
short y = 0x7fff;
return x & y; /* { dg-bogus "conversion" "conversion" { xfail *-*-* } 8 } */
}
This works in C, so it seems "same_type" does different things in C and in C++.
I don't have time to investigate this at the moment so any help is appreciated.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34389