This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/4707: g++ complains about a "typedef", but no typedefs arethere


The following reply was made to PR c++/4707; it has been noted by GNATS.

From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-gnats@gcc.gnu.org, Volker Reichelt <reichelt@igpm.rwth-aachen.de>,
   <dlux@dlux.dlux.hu>
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<T>::foo()':
 x.cc:3: error: parse error before `;' token
 
 W.
 
 -------------------------------------------------------------------------
 Wolfgang Bangerth              email:           bangerth@ticam.utexas.edu
                                www: http://www.ticam.utexas.edu/~bangerth
 
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]