Opened 6 years ago

Closed 6 years ago

#58 closed defect (fixed)

typo in generic type instantiation crashes the compiler

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

Description

This code crashes the compiler because of "typet_t" instead of "type_t"

forall(dtype T | sized(T))
struct wrapper{
	T * ptr;
	int size;
};
typedef long long int type_t;
struct outer {
	wrapper(typet_t) w;
};

Change History (2)

comment:1 Changed 6 years ago by Thierry Delisle

Summary: typo crashes the compilertypo in generic type instantiation crashes the compiler

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

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

In 48fa824:

Add error check for unimplemented expression parameters for generic types [fixes #58]

Note: See TracTickets for help on using tickets.