Opened 3 years ago

#234 new defect

Resolver allows assignment to declared function

Reported by: mlbrooks Owned by:
Priority: trivial Component: cfa-cc
Version: 1.0 Keywords:


void foo(void) {}
void bar(void) {}

int main() {
    foo = bar;

Actual: Error: In function ‘_X4mainFi___1’ ... lvalue required as left operand of assignment
Expected: Error: No reasonable alternatives for ?=?( foo, bar )

The reasonableness of the candidate that presumes to assign to the declared function has been seen causing an ambiguity between assigning to a local variable and assigning to the declared function, when "obviously" the local variable should be assigned to.

Change History (0)

Note: See TracTickets for help on using tickets.