On 12/11/2011 09:00 AM, Fabien Chêne wrote:
Here, we weren't creating a typename_type for a dependent type introduced by a using declaration. A USING_DECL was not recording the fact that it refers to a dependent type, so I've created a new macro USING_DECL_TYPENAME_P to record that information (using the free slot DECL_LANG_FLAG_1 for USING_DECLs), and set it appropriately in cp_parser_using_declaration.
I think we can do without this flag; if DECL_DEPENDENT_P and the target decl is a TYPE_DECL, it's a typename.
Jason