Opened 6 years ago

Closed 6 years ago

#98 closed defect (fixed)

Duplicate function has no line number

Reported by: Thierry Delisle Owned by: Rob Schluntz <rschlunt@…>
Priority: minor Component: cfa-cc
Version: 1.0 Keywords: linenumbers
Cc:

Description

trait is_a_thing(otype T) {
	T & ?=?( T &, T );
};

forall(otype T | is_a_thing(T))
T foo();

results in an error with no line number:

error: duplicate function definition for ?=?: pointer to function
... with parameters
  reference to instance of type T (not function type) 
  instance of type T (not function type) 
... returning 
  _retval__operator_assign: reference to instance of type T (not function type) 
  ... with attributes: 
    Attribute with name: unused

Change History (1)

comment:1 Changed 6 years ago by Rob Schluntz <rschlunt@…>

Owner: set to Rob Schluntz <rschlunt@…>
Resolution: fixed
Status: newclosed

In d53772d:

Transfer location from function to object in FixFunction? [fixes #98]

Note: See TracTickets for help on using tickets.