diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-13 23:04:04 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-13 23:04:04 +0000 |
commit | 8eba82c2c6494554a413467fde6b5eba8650aa58 (patch) | |
tree | e1cf9d9d9344fa47145013bc35c5f60522a5052e /gcc/cp | |
parent | 635e0e880fb1885cfc80d46a9ac66bbe569b3ee9 (diff) | |
download | gcc-8eba82c2c6494554a413467fde6b5eba8650aa58.tar.gz |
2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/53210
* doc/invoke.texi ([Winit-self]): Document as enabled by -Wall
in C++.
/c-family
2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/53210
* c.opt ([Winit-self]): Enabled by -Wall in C++.
/cp
2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/53210
* init.c (perform_member_init): Use OPT_Winit_self instead of
OPT_Wuninitialized.
/testsuite
2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/53210
* g++.dg/warn/Winit-self.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191284 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/cp/init.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4a9f5c3c2a2..21256df0403 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,4 +1,11 @@ 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com> + Manuel López-Ibáñez <manu@gcc.gnu.org> + + PR c++/53210 + * init.c (perform_member_init): Use OPT_Winit_self instead of + OPT_Wuninitialized. + +2012-09-13 Paolo Carlini <paolo.carlini@oracle.com> * typeck.c (build_indirect_ref, build_function_call, build_function_call_vec, build_binary_op, build_unary_op, diff --git a/gcc/cp/init.c b/gcc/cp/init.c index e5abec706cd..d097443af55 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -578,7 +578,7 @@ perform_member_init (tree member, tree init) if (TREE_CODE (val) == COMPONENT_REF && TREE_OPERAND (val, 1) == member && TREE_OPERAND (val, 0) == current_class_ref) warning_at (DECL_SOURCE_LOCATION (current_function_decl), - OPT_Wuninitialized, "%qD is initialized with itself", + OPT_Winit_self, "%qD is initialized with itself", member); } |