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.

(cherry picked from commit 5c845c1c50ac89a6f12557d1571678f3d1432478)

Details

Committed
hansMar 12 2020, 4:10 AM
Parents
rG5e062819d5ad: Revert "PR45083: Mark statement expressions as being dependent if they appear…
Branches
Unknown
Tags
Unknown