https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78718

--- Comment #3 from Jim MacArthur <jim.macarthur at codethink dot co.uk> ---
It looks to me like the assertion failure is because the symbol in the argument
expression doesn't have the attr.referenced bit set. resolve_actual_arglist
replaces the symtree in the 'z' expression when it finds the 'z' in the parent
namespace:

      e->symtree = parent_st;           /* Point to the right thing.  */

But this new symtree's symbol doesn't have attr.referenced set, unlike the
symtree it's replacing. You can copy the old referenced bit across to make it
work, but I've no idea yet what the correct solution is.

Reply via email to