From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19216 invoked by alias); 11 Dec 2006 20:23:19 -0000 Received: (qmail 19169 invoked by uid 48); 11 Dec 2006 20:23:05 -0000 Date: Mon, 11 Dec 2006 20:23:00 -0000 Message-ID: <20061211202305.19168.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/27657] [4.2/4.3 regression] bogus undefined reference error to static var with -g and -O In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "reichelt 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: 2006-12/txt/msg00950.txt.bz2 ------- Comment #11 from reichelt at gcc dot gnu dot org 2006-12-11 20:23 ------- Btw, the following C++ example fails to link even without -O: ============================= const char s[] = ""; const char *const p = s; int main() { return 0; } ============================= -- reichelt at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |reichelt at gcc dot gnu dot | |org Keywords| |monitored http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27657