delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/12/08:22:14

X-Sender: dlanor AT mail DOT dds DOT nl
Message-Id: <l03130303b387443135f6@[145.98.116.41]>
In-Reply-To: <7jqdom$4l0$1@taliesin.netcom.net.uk>
References: <l03130305b385ed37e622@[145.98.116.217]>
Mime-Version: 1.0
Date: Sat, 12 Jun 1999 00:55:35 +0200
To: djgpp AT delorie DOT com
From: Dlanor Blytkerchan <dlanor AT dds DOT nl>
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

>>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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019