Opened 6 years ago

Closed 6 years ago

#97 closed defect (fixed)

Missing polymorphic type 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

The following code:

forall(otype type) {
struct T {
	int x, y;
};

T(type) foo() {
	return (T){1, 2};
}

produces an error with no line number:

error: Too few type arguments in generic type lvalue instance of struct T with body 1

Change History (1)

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

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

In e82ef13:

Transfer location from typedef instance to actual type [fixes #97]

Note: See TracTickets for help on using tickets.