Methods defined inline in classes can refer to typedefs and ivars defined later in the class. This requires parsing method bodies after the top level class is fully analyzed.

-Chris

http://nondot.org/sabre
http://llvm.org

On Oct 15, 2007, at 8:27 AM, Antti-Juhani Kaijanaho <[EMAIL PROTECTED] > wrote:

On Mon, Oct 15, 2007 at 11:59:00AM +0200, Ivo wrote:
Yes. The code generator is intertwined with the parser. Also, I seem to remember reading somewhere that a single pass C++ compiler is impossible
due to the nature of the language. tcc is a single pass compiler.

The C++ language, like C, includes certain warts specifically to allow
for one-pass compilation.  I am not aware of any C++ features that
require more than one pass, but I could be wrong.

--
Antti-Juhani Kaijanaho, Jyväskylä, Finland
http://antti-juhani.kaijanaho.fi/newblog/
http://www.flickr.com/photos/antti-juhani/


_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel


_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to