libstdc++: Adjust friend declarations to work with Clang
authorJonathan Wakely <jwakely@redhat.com>
Thu, 6 Jan 2022 11:11:52 +0000 (11:11 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 6 Jan 2022 14:56:48 +0000 (14:56 +0000)
commitec12ddd1e7f7d6b48a593df865e7846039e7d62e
treef04833240674cffedc10a3694822f83fa93e728f
parente19e2989c36c5148ceb67a1f2575718fc1927ce6
libstdc++: Adjust friend declarations to work with Clang

I think this code is valid but it fails with Clang, possibly due to
https://llvm.org/PR38882

Qualifying the names makes it work for all compilers.

libstdc++-v3/ChangeLog:

* include/bits/regex.h (basic_regex, match_results): Qualify
name in friend declaration, to work around Clang bug.
libstdc++-v3/include/bits/regex.h