Pascal Viandier wrote:
For sure I read paragraph 6.13 of ISO 10206 before asking your advice. I must say, for me the Note 1:
:1 This International Standard constrains the order of program-components of : a conforming program only by the partial ordering defined by 6.2.2.9. A : further restriction by a processor on the order of program-components can : be justified only by subclause 1.2 a).
does not state "clearly" one can freely put garbage in his/her source code provided that it is after the final "End." :-) I admire people like you who can see clearly something in a so cryptic text - at least for me -. This kind of things keeps me humble.
I wrote "useless modules" not garbage: 6.13 says that program is composed from modues, each module ended by a dot. The note in particular says that some modules may follow main program. Such modules are not garbage: we still should check if they are syntactically correct.
Some folks to not like such behaviour. The `-fignore-garbage-after-dot' option is for then.
BTW. We had long thread about this some time ago.