From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26204 invoked by alias); 30 Mar 2010 08:22:29 -0000 Received: (qmail 26159 invoked by uid 48); 30 Mar 2010 08:22:15 -0000 Date: Tue, 30 Mar 2010 08:22:00 -0000 Message-ID: <20100330082215.26158.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/25811] No failure creating a POD containing a const member, using new without a new-initializer. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fabien dot chene at gmail dot com" 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: 2010-03/txt/msg02993.txt.bz2 ------- Comment #2 from fabien dot chene at gmail dot com 2010-03-30 08:22 ------- is it still invalid in c++0X ? 5.3.4.15 has been revamped, and I no longer find a motif to reject such code. I think the following code is also invalid, according to 8.5.6 (c++03) / 8.5.8 (c++0x): struct A { int& i; }; void f () { new A; } I have a patch to fix both issues. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25811