public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/41425]  New: switch with enums doesn't work
@ 2009-09-21 12:17 Woebbeking at web dot de
  2009-09-21 12:19 ` [Bug c++/41425] " Woebbeking at web dot de
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Woebbeking at web dot de @ 2009-09-21 12:17 UTC (permalink / raw)
  To: gcc-bugs

If I cast an int to the enum type all values outside the enum triggers the
first case-statement.

The number of enum values is important. It must be a power of 2.

This works in GCC 4.3.4.


-- 
           Summary: switch with enums doesn't work
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Woebbeking at web dot de


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


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-05-04  4:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-21 12:17 [Bug c++/41425] New: switch with enums doesn't work Woebbeking at web dot de
2009-09-21 12:19 ` [Bug c++/41425] " Woebbeking at web dot de
2009-09-21 12:21 ` Woebbeking at web dot de
2009-09-21 12:22 ` Woebbeking at web dot de
2009-09-21 12:41 ` paolo dot carlini at oracle dot com
2009-09-21 12:42 ` paolo dot carlini at oracle dot com
2009-09-21 12:44 ` rguenth at gcc dot gnu dot org
2009-09-21 12:54 ` Woebbeking at web dot de
2009-09-21 13:08 ` rguenth at gcc dot gnu dot org
2009-09-21 14:25 ` schwab at linux-m68k dot org
2009-09-21 14:46 ` paolo dot carlini at oracle dot com
2009-09-21 16:46 ` Woebbeking at web dot de
2009-09-22 11:43 ` rguenth at gcc dot gnu dot org
2010-05-04  4:48 ` jason at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).