mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Members of `std::string_view` can't be accessed directly, because that type maps into Carbon's `str` type (`Core.String`), so member access doesn't find the C++ members. But they can be named via qualified name lookup into a derived type. That crashed because we didn't expect the non-Cpp type `Core.String` to be the parent of a Cpp-imported member. Plus add some more test coverage for related cases (not involving `str`) that already worked. --------- Co-authored-by: Geoff Romer <gromer@google.com>