When constructing an array expression where the index expression
was a pack expansion, we would construct an ArraySubscriptExpr
instead of an CreateOverloadedArraySubscriptExpr, and pack
expansion would not occur - leading a crash during code gen
or a failure during constant evaluation
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, other than my comment on the diagnostic wording
clang/test/SemaCXX/cxx2b-overloaded-operator.cpp | ||
---|---|---|
101 | The diagnostic is not great. |
clang/test/SemaCXX/cxx2b-overloaded-operator.cpp | ||
---|---|---|
101 | Indeed. The issue is that we only add the built-in to the set of candidates if there are two args (ie one index, after expansion). |
The diagnostic is not great.