From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5834 invoked by alias); 29 Apr 2013 14:04:41 -0000 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 Received: (qmail 5632 invoked by uid 48); 29 Apr 2013 14:04:39 -0000 From: "jb.1234abcd at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57111] Core dump - invalid pointer detected after std::unique_ptr Date: Mon, 29 Apr 2013 14:04: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: X-Bugzilla-Severity: normal X-Bugzilla-Who: jb.1234abcd at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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 X-SW-Source: 2013-04/txt/msg02343.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57111 --- Comment #2 from jb 2013-04-29 14:04:38 UTC --- (In reply to comment #1) > That's not how you use unique_ptr. That's besides the point when you get a dump. If the proper use of unique_ptr with array is: unique_ptr up(new int[4]); //array version of unique_ptr then the compiler should give a warning on "improper use", do not you think ?