From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 414 invoked by alias); 22 Nov 2004 15:02:50 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 359 invoked from network); 22 Nov 2004 15:02:40 -0000 Received: from unknown (HELO exch03.pdv-fs.de) (145.253.159.193) by sourceware.org with SMTP; 22 Nov 2004 15:02:40 -0000 Subject: Warn implicit enum conversions MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Mon, 22 Nov 2004 15:21:00 -0000 Message-ID: From: =?iso-8859-1?Q?=22Richter=2C_J=F6rg=22?= To: X-SW-Source: 2004-11/txt/msg00748.txt.bz2 Hi, I'm looking for a type attribute for enums which enables warnings when vari= ables of this enum type are implicitly converted to an integral type like i= nt. I read the online manual and found nothing I could try.=20 I can't imagine, that this demand is so uncommon. Perhaps someone knows of = a patch that does something like this? Or alternatively you can point me to= some functions in gcc where I can start to try to implement it myself? Ah yes, I need it for C++. Any help would be greatly appreciated. Joerg