From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13370 invoked by alias); 3 Nov 2008 11:13:47 -0000 Received: (qmail 2081 invoked by uid 48); 3 Nov 2008 11:12:26 -0000 Date: Mon, 03 Nov 2008 11:13:00 -0000 Message-ID: <20081103111226.2080.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/35334] [4.2/4.3/4.4 regression] Broken diagnostic for complex cast In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "manu at gcc dot gnu 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: 2008-11/txt/msg00168.txt.bz2 ------- Comment #7 from manu at gcc dot gnu dot org 2008-11-03 11:12 ------- (In reply to comment #6) > I think the "cannot be used as a function" error should print the exact object > only if it is a DECL_P, otherwise just print error: expression cannot be used > as a function". Imagine if the object is a 100KB statement expression, do we > want to print that? When we have to start/end location information, we'd just > print a caret range. This doesn't only apply to that particular error but anywhere that tries to print a complex_expr. So it cannot be solved at that level. It must be solved inside pretty-printer. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35334