This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]