------- Comment #2 from pinskia at gcc dot gnu dot org  2006-04-24 21:06 -------
Most likely you can get rejects valid with (though I have not tried sicne the C
style casts just check to see if they can do a static cast, and the rest of the
casts and if it cannot, it ICEs):
struct A
{
  int i : 8;
};

bool foo(A a)
{
  return static_cast<int>(a.i);
}


-- 


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

Reply via email to