]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/32346 (long long bitfield passed to int argument incorrectly)
authorMark Mitchell <mark@codesourcery.com>
Fri, 27 Jul 2007 21:46:33 +0000 (21:46 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 27 Jul 2007 21:46:33 +0000 (21:46 +0000)
commit5a37af8533269210974644fbfcf8800a61ee6b21
treed1a3445953efe3fcd42710d2b1d133fae94c18af
parent7128703163b68fc24cdf1c37240cc19fccfd382b
re PR c++/32346 (long long bitfield passed to int argument incorrectly)

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.

From-SVN: r126999
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/expr/bitfield9.C [new file with mode: 0644]