On 9/15/23 13:55, Patrick Palka wrote:
This corrects decltype of a (class) NTTP object as per
[dcl.type.decltype]/1.2 and [temp.param]/6 in the type-dependent case.
In the non-dependent case (nontype-class8.C) we resolve the decltype
ahead of time, and finish_decltype_type already made sure to drop the
const VIEW_CONVERT_EXPR wrapper around the TEMPLATE_PARM_INDEX.

Hmm, seems like dropping the VIEW_CONVERT_EXPR is wrong in this case? I'm not sure why I added that.

Jason

Reply via email to