Skip to content

Calling overloaded operators from code generated by syntax extensions doesn't work properly #2732

@msullivan

Description

@msullivan

A poorly documented invariant about node ids is that all operations that can be overloaded have an extra node id allocated before them, to provide a node id to hang information about the overloaded function. (See ast_util::op_expr_callee_id). Generators of syntax trees need to respect this invariant, but the syntax extension build facilities don't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-syntaxextArea: Syntax extensionsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions