This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32346] [4.2/4.3 Regression] long long bitfield passed to int argument incorrectly
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2007 21:46:43 -0000
- Subject: [Bug c++/32346] [4.2/4.3 Regression] long long bitfield passed to int argument incorrectly
- References: <bug-32346-14707@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from mmitchel at gcc dot gnu dot org 2007-07-27 21:46 -------
Subject: Bug 32346
Author: mmitchel
Date: Fri Jul 27 21:46:33 2007
New Revision: 126999
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126999
Log:
PR c++/32346
* call.c (convert_for_arg_passing): Only widen bitfields to their
declared types if necessary.
PR c++/32346
* g++.dg/expr/bitfield9.C: New test.
Added:
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/expr/bitfield9.C
Modified:
branches/gcc-4_2-branch/gcc/cp/ChangeLog
branches/gcc-4_2-branch/gcc/cp/call.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32346