From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8144 invoked by alias); 11 Jun 2014 11:29:04 -0000 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 Received: (qmail 8119 invoked by uid 48); 11 Jun 2014 11:29:00 -0000 From: "nick87720z at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/61469] language feature: Support for enum underlying type Date: Wed, 11 Jun 2014 11:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: nick87720z at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg00761.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469 --- Comment #5 from nick87720z at gmail dot com --- I remember case, when bigger size, than from int, was needed - it was 64-bit integer, used as flag container. Program, using it, is not my. When i decided to reimplement it as enum, author explained me problem. As for standard, there are still things not in standard - GCC extensions (such as computed labels, for which i even exactly know possible use case - some kind of bridges to seemlessly skip certain checks, which are useless after decision is done all, with one or two exceptions) and this one, imho, is good candidate for implementation; personally i don't care very much about other compilers, thus don't fear of such proposals :].