X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Raf256 Newsgroups: comp.os.msdos.djgpp Subject: Re: Parse Error what does it mean. Date: 6 Dec 2001 17:06:09 GMT Organization: aa Lines: 22 Sender: raf256 AT poczta DOT onet DOT pl@chello062179025129.chello.pl Message-ID: References: NNTP-Posting-Host: chello062179025129.chello.pl Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit X-Trace: news.onet.pl 1007658369 16384 62.179.25.129 (6 Dec 2001 17:06:09 GMT) X-Complaints-To: abuse AT onet DOT pl NNTP-Posting-Date: 6 Dec 2001 17:06:09 GMT User-Agent: Xnews/4.06.22 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote in news:Pine DOT SUN DOT 3 DOT 91 DOT 1011206094104 DOT 15950C AT is: >> In your case, you forgot a semicolon after the "Hello World!\n" >> string. > Looks like GCC is reporting the parse error at the wrong place, then, > no? I'd understand if it said parse error in line 5 or 6, but not > line 4, which is _before_ the problematic line, and is by itself > perfectly valid C++. > > A bug in line counts, perhaps? i have GCC 3.0.2 and every thing is ok (error is "...before return ;") -- Raf256 ,--, _ ,- _ _ _ ,---------------------------------------------, |,-'`_|_|_ `_||_'|_' | raf256 AT go2 DOT pl | `\|_| | |_,,_||_| |