This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11946] [3.4 regression] fun and merriment with enums as function arguments
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Aug 2003 14:31:02 -0000
- Subject: [Bug c++/11946] [3.4 regression] fun and merriment with enums as function arguments
- References: <20030816135431.11946.richard.kreckel@ginac.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11946
falk at debian dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Summary|fun and merriment with enums|[3.4 regression] fun and
|as function arguments |merriment with enums as
| |function arguments
------- Additional Comments From falk at debian dot org 2003-08-16 14:31 -------
This is clearly a bug. Consider this stripped test case:
void abort();
int main()
{
enum { shelf = 4 } t = shelf;
if (!(t & shelf))
abort ();
}
Note test1 in the original test case is bogus, t & shelf != 0 means t & (shelf
!= 0), i.e., t & chair.