This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36741] [4.3/4.4 regression] Bogus "large integer implicitly truncated" passing size_t constant to new
- From: "dodji at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Aug 2008 16:06:24 -0000
- Subject: [Bug c++/36741] [4.3/4.4 regression] Bogus "large integer implicitly truncated" passing size_t constant to new
- References: <bug-36741-1313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from dodji at gcc dot gnu dot org 2008-08-14 16:06 -------
Created an attachment (id=16074)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16074&action=view)
third fix candidate
This patch tries another approach.
Basically it changes the low level function (shared with the C front-end) that
tests if an integer value fits within a given type.
It provides a special casing for integers of type sizetype.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36741