C++0x Constructor Delegation

Mark Mitchell mark@codesourcery.com
Sun Mar 4 18:11:00 GMT 2007

Andrew Pinski wrote:

> I think emit_mem_initializers check could be improved, and only have a
> loop in the case of the error and also only in C++0x mode because it
> might slow down the compiler too much.

Rather, this check should just be done in the parser, as it can know
what names indicate a base/member and which name a constructor.  It just
has to maintain a seen-delegate bit.  That follows the principle of
keeping invalid representations contained as tightly as possible within
the C++ front end.

Mark Mitchell
(650) 331-3385 x713

More information about the Gcc-patches mailing list