This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14318] sizeof() does too much
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Feb 2004 12:34:35 -0000
- Subject: [Bug c++/14318] sizeof() does too much
- References: <20040227032625.14318.s_gccbugzilla@nedprod.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-02-27 12:34 -------
Niall,
I don't follow you. When you're trying to assign a Foo to a "long int" there
are three different valid conversion sequences. You can either go through "long
long int", through "double" or through "char". What's your expectation? There
is no perfect match, and all the three types are then implicitally convertable
to "long int" which is the final type.
This has nothing to do with implementation, if you ask Boost.TypeTraits you
will find the same behaviour.
As for the sizeof() warning about passing non-POD through '...', I already
fixed it some weeks ago, you should probably update your compiler.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14318