re PR c++/32346 (long long bitfield passed to int argument incorrectly)
authorMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 27 Jul 2007 17:13:29 +0000 (17:13 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 27 Jul 2007 17:13:29 +0000 (17:13 +0000)
commit83144bd60ce827e50425094f47f39aed75324cd6
tree8699cc4407ba2a4a6d5b61ba61f8dcc7daeccc44
parentb8475dd604f7461fef93b0fe2b9c52b4a6d206f0
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: r126986
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/expr/bitfield9.C [new file with mode: 0644]