------- Comment #5 from rguenth at gcc dot gnu dot org  2007-07-26 09:58 -------
Confirmed.  This is caused by

2007-04-17  Mark Mitchell  <[EMAIL PROTECTED]>

        PR c++/31513
        * call.c (convert_for_arg_passing): Convert bitfields to their
        declared types.

which causes us to expand

  dosomething ((long long int) bar.item, 0)

as convert_for_arg_passing does not demote types.  The patch didn't went to
the 4.1 branch and I cannot reproduce the failure there.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org, mark at codesourcery
                   |                            |dot com
OtherBugsDependingO|                            |31513
              nThis|                            |
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |wrong-code
      Known to fail|                            |4.2.0 4.2.1 4.3.0
      Known to work|                            |4.1.2
   Last reconfirmed|0000-00-00 00:00:00         |2007-07-26 09:58:28
               date|                            |
            Summary|long long bitfield passed to|[4.2/4.3 Regression] long
                   |int argument incorrectly    |long bitfield passed to int
                   |                            |argument incorrectly
   Target Milestone|---                         |4.2.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32346

Reply via email to