parse error at end of input

Dave Korn dk@artimi.com
Fri Apr 23 21:22:00 GMT 2004


> -----Original Message-----
> From: gcc-owner On Behalf Of Joe Buck
> Sent: 21 April 2004 21:37

> On Wed, Apr 21, 2004 at 03:18:24PM -0500, Satish Banukumar wrote:
> > Iam sorry i didnt mention a few things, iam using the gcc compiler.
> 
> Of course.  What version?  What platform?
> 
> > iam using SystemC library. Iam suspicious about the return 
> statement can
> > you suggest how I can modify the return statement.
> 
> You haven't posted a complete test case, so no one can help 
> you.  There
> isn't anything wrong with the return statement.  The error is 
> probably in
> one of these files:
> 
> > > > #include "stage1.cpp"
> > > > #include "stage2.cpp"
> > > > #include "check.cpp"

  I agree there's precious little we can do without seeing the source code,
but I do have a suggestion worth considering:

  Does one of those files - particularly check.cpp - have a struct or array
definition at the end which is missing a semicolon after the closing brace?

  You might try putting a semicolon just after the #include "check.cpp"
line, as that will at least tell you if some malformed construct at the end
of that file is being parsed forward into and mangling the parsers
understanding of the main (...) function.

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....



More information about the Gcc mailing list