This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4707: g++ complains about a "typedef", but no typedefs arethere
- From: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 4 Dec 2002 14:26:02 -0000
- Subject: Re: c++/4707: g++ complains about a "typedef", but no typedefs arethere
- Reply-to: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
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