FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / bool3.C
blobd8e95147b7548ada172808f2e1fee311e0690337
1 // From: panisset@cae.ca (Jean-Francois Panisset)
2 // Subject: Problem with constant expressions for bitfields
3 // Date: Mon, 6 Jun 94 14:00:01 EDT
5 // Bug: g++ doesn't treat boolean true and false as constant values.
6 // Build don't link:
8 enum E { e1,e2,e3,e4,e5 };
10 struct X
12         unsigned int bits : ((e5 > 4) ? 8 : 4); // gets bogus error - constant expression