1 // { dg-do assemble } 2 // From: panisset@cae.ca (Jean-Francois Panisset) 3 // Subject: Problem with constant expressions for bitfields 4 // Date: Mon, 6 Jun 94 14:00:01 EDT 5 6 // Bug: g++ doesn't treat boolean true and false as constant values. 7 8 enum E { e1,e2,e3,e4,e5 }; 9 10 struct X 11 { 12 unsigned int bits : ((e5 > 4) ? 8 : 4); // { dg-bogus "" } constant expression 13 }; 14