From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8105 invoked by alias); 16 Nov 2009 17:02:51 -0000 Received: (qmail 7180 invoked by uid 48); 16 Nov 2009 17:02:31 -0000 Date: Mon, 16 Nov 2009 17:02:00 -0000 Message-ID: <20091116170231.7179.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/msg01316.txt.bz2 ------- Comment #1 from pinskia at gcc dot gnu dot org 2009-11-16 17:02 ------- Well you are not misusing a type here really. The second string causes string to be a variable name, so the error message is correct as it is no longer a type at that point. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42067