[Bug c++/18016] Warn about member variables initialized with itself

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 23 08:39:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18016

--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-05-23 08:15:24 UTC ---
Author: redi
Date: Mon May 23 08:15:16 2011
New Revision: 174058

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174058
Log:
2011-05-23  Jonathan Wakely  <jwakely.gcc@gmail.com>

    PR c++/18016
    * init.c (perform_member_init): Check for self-initialization.

Added:
    trunk/gcc/testsuite/g++.dg/warn/pr18016.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/init.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list