Opened 4 years ago

Closed 4 years ago

#4 closed defect (fixed)

User-generated constructors for basic types overload non-matching prelude constructors

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


If you write a constructor like void ?{}( int*, zero_t ); in user code, it hides the default int constructor in the prelude, and possibly shouldn't.

(That said, over-writing a *matching* prelude constructor should hide it, and I'm not sure if we can effectively differentiate between these cases.)

Change History (1)

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

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

In ff03f5c:

only hide intrinsic default constructor when overridden exactly [fixes #4]

Note: See TracTickets for help on using tickets.