X-Sender: dlanor AT mail DOT dds DOT nl Message-Id: In-Reply-To: <7jqdom$4l0$1@taliesin.netcom.net.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Sat, 12 Jun 1999 00:55:35 +0200 To: djgpp AT delorie DOT com From: Dlanor Blytkerchan Subject: Re: definatly an error in either the compiler or RHIDE: Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk >>Small, insignificant, yes. But still worth mentioning: >>Writing a sloppy C++ program with a lot of errors in it, the compiler >>returned all those errors to me with the wrong line numbers. For example, I >>was declaring a class variable from main (somewhere beyond line 50 in my >>source): >> >>int main(void) { >> blabla bla1; >> blabla bla2; >> blabla bla3; >> classType classVar = new classType(bullshit); >> >> (..) >> >> return(0); >>} // main() >> >>guess what? It didn't work. (Ofcourse not: I had even declared the class >>itself all wrong, more like a struct than a class..). The compiler returned >>an error message indicating that the fault was in main() (which is right), >>on line number 4 of the file (which is wrong: it is line number four in the >>method, but definatly not in the file). RHIDE promptly pointed me to that >>line. Either RHIDE is wrong or the compiler is (though it was right that I >>was producing errors more than it was, so I stopped programming and started >>E-mailing). >This may be due to optimisations being switched on. They're not switched on - and it would still be an error if they were ;-) Greetz! Dlanor