[Bug c++/35909] [4.4 Regression] ICE with bit-field and const references

2008-04-15 Thread pinskia at gcc dot gnu dot org


--- Comment #4 from pinskia at gcc dot gnu dot org  2008-04-15 08:57 ---
It did work with:
GNU C++ (GCC) version 4.3.0 20080128 (experimental) [trunk revision 131899]
(i386-apple-darwin8.10.1)
But fails with:
GNU C++ (GCC) version 4.4.0 20080304 (experimental) [trunk revision 132852]
(i386-apple-darwin8.10.1)


-- 


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



[Bug c++/35909] [4.4 Regression] ICE with bit-field and const references

2008-04-12 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2008-04-12 22:03 ---
Reduced testcase:
struct MidiCommand
{
  unsigned data1 : 8;
};
void g(const unsigned char );
void f(MidiCommand mc)
{
  g(mc.data1);
}

- CUT ---
And I was wrong, it is not related to that PR.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
  Known to work|4.3.0   |
   Last reconfirmed|-00-00 00:00:00 |2008-04-12 22:03:37
   date||
Summary|[4.3/4.4 Regression] ice for|[4.4 Regression] ICE with
   |legal code  |bit-field and const
   ||references
   Target Milestone|4.3.1   |4.4.0


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