From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5072 invoked by alias); 20 Dec 2009 18:50:58 -0000 Received: (qmail 4997 invoked by uid 48); 20 Dec 2009 18:50:45 -0000 Date: Sun, 20 Dec 2009 18:50:00 -0000 Message-ID: <20091220185045.4996.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/35652] [4.3/4.4/4.5 Regression] offset warning should be given in the front-end In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub 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: 2009-12/txt/msg01974.txt.bz2 ------- Comment #34 from jakub at gcc dot gnu dot org 2009-12-20 18:50 ------- It was warning too much, even about if (0) code, so it broke a lot of valid code with -Werror, including stuff like: #include int f (char *s) { return strcmp (s, ""); } If a warning like this is to be done by the FE, it would need to be only queued in the IL and emitted only if it survived at least some initial DCE. Perhaps in a form of an artificial __builtin_warning, or something similar. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35652