Created on 2003-10-10.00:00:00 last changed 33 months ago
[Voted into WP at October 2004 meeting.]
Proposed resolution:
Change the example at the end of 11.4.10 [class.bit]/4 from:
enum BOOL { f=0, t=1 }; struct A { BOOL b:1; }; A a; void f() { a.b = t; if (a.b == t) // shall yield true { /* ... */ } }
To:
enum BOOL { FALSE=0, TRUE=1 }; struct A { BOOL b:1; }; A a; void f() { a.b = TRUE; if (a.b == TRUE) // shall yield true { /* ... */ } }
It looks like the example on 11.4.10 [class.bit] paragraph 4 has both the enum and function contributing the identifier "f" for the same scope.
enum BOOL { f=0, t=1 }; struct A { BOOL b:1; }; A a; void f() { a.b = t; if (a.b == t) // shall yield true { /* ... */ } }
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-02-18 07:47:23 | admin | set | messages: + msg6689 |
2008-10-05 00:00:00 | admin | set | status: wp -> cd1 |
2005-05-01 00:00:00 | admin | set | status: dr -> wp |
2004-11-07 00:00:00 | admin | set | messages: + msg1096 |
2004-11-07 00:00:00 | admin | set | status: ready -> dr |
2004-04-09 00:00:00 | admin | set | status: open -> ready |
2003-10-10 00:00:00 | admin | create |