From e7bf85939b6bf2df028b27fa34a0587b81823dbf Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Tue, 14 Jun 2005 16:55:45 +0000 Subject: [PATCH] re PR c++/21987 (New testsuite failure g++.dg/warn/conversion-function-1.C) PR c++/21987 * decl.c (grok_op_properties): Add missing warn_conversion check. From-SVN: r100940 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/decl.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 46941cab29e0..caaefb9fd0db 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2005-06-14 Mark Mitchell + + PR c++/21987 + * decl.c (grok_op_properties): Add missing warn_conversion check. + 2005-06-13 Nathan Sidwell PR c++/20789 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 12622cedfb7f..3f62ad5540d0 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -9143,6 +9143,7 @@ grok_op_properties (tree decl, bool complain) /* Warn about conversion operators that will never be used. */ if (IDENTIFIER_TYPENAME_P (name) && ! DECL_TEMPLATE_INFO (decl) + && warn_conversion /* Warn only declaring the function; there is no need to warn again about out-of-class definitions. */ && class_type == current_class_type) -- 2.47.2