[Issue 2643] -o- switch breaks semantic analysis

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 5 02:16:12 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2643





------- Comment #2 from maxmo at pochta.ru  2009-02-05 04:16 -------
> that's not a bug if you look at it a different way; -o- is to allow generating
> ddoc output without having to run everything.

not everything, just object file generation

> OTOH if you see it as run a test build but don't generate object files...

well then this feature should be better documented, because *some* semantic
analysis is *done* with -o- switch. I suspect that this surprise only pops up
when compiler tries to build class's vtbl at codegen step, which means that
semantic analysis is not fully done at right time. I intensively use gcc
-fsyntax-only and never run into trouble with it, in spite of the switch name,
it seems like it does full semantic analysis.


-- 



More information about the Digitalmars-d-bugs mailing list