From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24755 invoked by alias); 28 Oct 2004 03:35:44 -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 24740 invoked by uid 48); 28 Oct 2004 03:35:44 -0000 Date: Thu, 28 Oct 2004 03:35:00 -0000 Message-ID: <20041028033544.24739.qmail@sourceware.org> From: "giovannibajo at libero dot it" 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/msg03415.txt.bz2 List-Id: ------- Additional Comments From giovannibajo at libero dot it 2004-10-28 03:35 ------- > -Winit-self has nothing to do with this problem really. > in this case :a(a) is equivalent to this->a = this->a; Not really. The member-list syntax is used to *initialize* the members, not to assign a value to them after a default initialization. I think it makes sense to warn only with -Winit-self. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18016