2 Commits

Author SHA1 Message Date
Matheus Izvekov
9e9d98aaf5
[clang] concepts: perform parameter mapping substitution in correct context (#101745)
Prior to this patch, during constraint normalization we could forget
from which declaration an atomic constraint was normalized from.

Subsequently when performing parameter mapping substitution for that
atomic constraint with an incorrect context, we couldn't correctly
recognize which declarations are supposed to be visible.

Fixes #60336
2024-08-04 19:00:54 -03:00
Erich Keane
5e01234df8 Add a new modules test to ensure we dont rebreak diagnostic
Fixes: 60336

Seemingly the concepts sugaring patch caused us to not catch this
situation, which has been confirmed to be a valid error.  Make sure that
we catch this situation in the future, particularly if the concepts
sugaring patch gets re added.
2023-02-02 07:16:41 -08:00