From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17030 invoked by alias); 16 Nov 2009 17:05:13 -0000 Received: (qmail 15009 invoked by uid 48); 16 Nov 2009 17:04:39 -0000 Date: Mon, 16 Nov 2009 17:05:00 -0000 Message-ID: <20091116170439.15008.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/42067] Misleading error message for misusing a type In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia 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: 2009-11/txt/msg01317.txt.bz2 ------- Comment #2 from pinskia at gcc dot gnu dot org 2009-11-16 17:04 ------- Comeau online tester gives: "ComeauTest.c", line 4: error: parameter "string" is not a type name int fn(string& string, string& head); Which is only slightly better. The trunk gives a column number: t.cc:3:24: error: 'string' is not a type Which shows where the problem is. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42067