From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16466 invoked by alias); 15 Oct 2004 17:05:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 16459 invoked by uid 48); 15 Oct 2004 17:05:58 -0000 Date: Fri, 15 Oct 2004 17:05:00 -0000 Message-ID: <20041015170558.16458.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041015164454.18016.ejb@ql.org> References: <20041015164454.18016.ejb@ql.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/18016] Warn about member variables initialized with itself X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg02125.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-15 17:05 ------- -Winit-self has nothing to do with this problem really. in this case :a(a) is equivalent to this->a = this->a; We should warn about this case even without -Winit-self or even -Wuninitialize as we can warn without optimization turned on. Note I added -Winit-self so I know what it was designed to do. -- What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |diagnostic Last reconfirmed|0000-00-00 00:00:00 |2004-10-15 17:05:57 date| | Summary|-Winit-self misses member |Warn about member variables |variables initialized after |initialized with itself |: in ctor | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18016