From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22068 invoked by alias); 15 Feb 2008 00:58:52 -0000 Received: (qmail 19844 invoked by uid 48); 15 Feb 2008 00:57:59 -0000 Date: Fri, 15 Feb 2008 00:58:00 -0000 Message-ID: <20080215005759.19843.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/35205] Structure enum wrongly interpreted as a variable in switch case. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg01609.txt.bz2 ------- Comment #1 from pinskia at gcc dot gnu dot org 2008-02-15 00:57 ------- I don't think this is a bug, a here is a variable so you are accessing the enum value via the variable which is a constant but not a constant integral expression. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35205