From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10887 invoked by alias); 26 Jan 2007 23:01:24 -0000 Received: (qmail 10830 invoked by uid 48); 26 Jan 2007 23:01:11 -0000 Date: Fri, 26 Jan 2007 23:01:00 -0000 Message-ID: <20070126230111.10829.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/18313] Missing warning for superfluous const's in return types In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "bangerth at dealii dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-01/txt/msg02310.txt.bz2 ------- Comment #6 from bangerth at dealii dot org 2007-01-26 23:01 ------- Hm, I'm not sure if I like this situation. Consider this snippet, typical of template games: --------------- template class Array { T& operator(); T operator() const; }; --------------- This class will trigger a warning if instantiated as Array because the return type of the second operator() is now 'const double'. W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18313