-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
leads questionA question for the leads teamA question for the leads team
Description
Summary of issue:
When a C++ function is called from Carbon as Cpp.foo({})
, the struct literal {}
shall be mapped to a C++ type so that Clang can perform an overloading resolution.
What would be a suitable mapping for this case? We discussed translating it to a braced-init-list initializer (InitListExpr). Are there any concerns with that approach? Or an alternative that may be more suitable?
Details:
This question popped up when implementing support for overloaded C++ functions (PR #5891). Many existing tests use Carbon struct literals in the calls of the C++ functions (e.g. {}
, {.a =2}
).
Any other information that you want to share?
No response
Metadata
Metadata
Assignees
Labels
leads questionA question for the leads teamA question for the leads team