From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22597 invoked by alias); 1 Nov 2012 20:52:28 -0000 Received: (qmail 22488 invoked by uid 48); 1 Nov 2012 20:52:16 -0000 From: "paolo.carlini at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/52718] -Wzero-as-null-pointer-constant: misleading location for 0 as default argument Date: Thu, 01 Nov 2012 20:52: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: paolo.carlini at oracle dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com X-Bugzilla-Target-Milestone: 4.7.1 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/msg00074.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52718 --- Comment #15 from Paolo Carlini 2012-11-01 20:52:15 UTC --- This is what I meant when I said that the issue is different, and is much more general than -Wzero-as-null-pointer-constant. Consider, eg, with -Woverflow: #pragma GCC system_header class Foo { public: Foo(signed char); }; class Bar { public: Bar(Foo = 10000); };