From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12008 invoked by alias); 24 Nov 2012 11:27:44 -0000 Received: (qmail 11891 invoked by uid 48); 24 Nov 2012 11:27:26 -0000 From: "harald at gigawatt dot nl" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/55446] [4.7/4.8 Regression] array new with size zero vanishes from object code Date: Sat, 24 Nov 2012 11:27: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-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: harald at gigawatt dot nl X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com X-Bugzilla-Target-Milestone: 4.7.3 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-11/txt/msg02246.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55446 --- Comment #9 from Harald van Dijk 2012-11-24 11:27:25 UTC --- Ah, okay, an alternative compile-only testcase that does not rely on particular warnings would be struct S { S(); }; __typeof__(new S[0]) s; test.cc:2:23: error: invalid type in declaration before ';' token but if you've already got a good testcase, sure, go with that :)