HomePhabricator

PR45083: Mark statement expressions as being dependent if they appear in a…

Authored by rsmith on Mar 9 2020, 5:34 PM.

Description

PR45083: Mark statement expressions as being dependent if they appear in a dependent context.

This matches the GCC behavior.

We track the enclosing template depth when determining whether a
statement expression is within a dependent context; there doesn't appear
to be any other reliable way to determine this.

We previously assumed they were neither value- nor
instantiation-dependent under any circumstances, which would lead to
crashes and other misbehavior.

Details

Committed
rsmithMar 10 2020, 2:45 PM
Parents
rG200b20639ac2: AMDGPU: Use V_MAC_F32 for fmad.ftz
Branches
Unknown
Tags
Unknown