lcc-win32 conformance question




If I compile this program

int main(void)
{
return 0; // foo bar baz
}

with

"lc -A -ansi89 foo.c"

(minus the quotes), no diagnostic is produced; but isn't this style of
comment illegal in C89 and thus this piece of code should be invalid?

How standards conformant is (unnamed compiler)?

.



Relevant Pages

  • Re: lcc-win32 conformance question
    ... int main ... return 0; // foo bar baz ... (minus the quotes), no diagnostic is produced; ...
    (comp.lang.c)
  • Re: lcc-win32 conformance question
    ... return 0; // foo bar baz ... (minus the quotes), no diagnostic is produced; ... Anyone trying to prepare source suitable for a C90 compiler, ...
    (comp.lang.c)
  • Re: lcc-win32 conformance question
    ... return 0; // foo bar baz ... (minus the quotes), no diagnostic is produced; ... comment illegal in C89 and thus this piece of code should be invalid? ...
    (comp.lang.c)
  • Re: lcc-win32 conformance question
    ... return 0; // foo bar baz ... (minus the quotes), no diagnostic is produced; ... If the compiler claims conformance to the obvious standard when ...
    (comp.lang.c)
  • Re: lcc-win32 conformance question
    ... return 0; // foo bar baz ... (minus the quotes), no diagnostic is produced; but isn't this style of comment illegal in C89 and thus this piece of code should be invalid? ... jacob at jacob point remcomp point fr ...
    (comp.lang.c)

Loading