From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27564 invoked by alias); 4 Dec 2002 14:26:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 27529 invoked by uid 71); 4 Dec 2002 14:26:02 -0000 Date: Wed, 04 Dec 2002 06:26:00 -0000 Message-ID: <20021204142602.27525.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: Re: c++/4707: g++ complains about a "typedef", but no typedefs are there Reply-To: Wolfgang Bangerth X-SW-Source: 2002-12/txt/msg00199.txt.bz2 List-Id: The following reply was made to PR c++/4707; it has been noted by GNATS. From: Wolfgang Bangerth To: gcc-gnats@gcc.gnu.org, Volker Reichelt , Cc: Subject: Re: c++/4707: g++ complains about a "typedef", but no typedefs are there Date: Wed, 4 Dec 2002 08:21:49 -0600 (CST) The real error of course is the lack of a semicolon after the struct declaration. This brings the typedef into the trouble with the class. If I add the semicolon, I get a much more reasonable message: tmp/g> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c x.cc x.cc: In member function `void A::foo()': x.cc:3: error: parse error before `;' token W. ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@ticam.utexas.edu www: http://www.ticam.utexas.edu/~bangerth