gcc/libstdc++-v3/include
Jakub Jelinek 2a82301d40 libstdc++: Tweak source_location for clang trunk [PR105128]
Apparently clang trunk implemented __builtin_source_location(), but the
using __builtin_ret_type = decltype(__builtin_source_location());
which has been added for it isn't enough, they also need the
std::source_location::__impl class to be defined (but incomplete seems
to be good enough) before the builtin is used.

The following has been tested on godbolt with clang trunk (old version
fails with
error: 'std::source_location::__impl' was not found; it must be defined before '__builtin_source_location' is called
and some follow-up errors), getting back to just void * instead of
__builtin_ret_type and commenting out using doesn't work either and
just struct __impl; before using __builtin_ret_type doesn't work too.

2022-04-02  Jakub Jelinek  <jakub@redhat.com>

	PR libstdc++/105128
	* include/std/source_location (std::source_location::__impl): Move
	definition before using __builtin_ret_type.
2022-04-02 12:49:38 +02:00
..
backward
bits libstdc++: Fix filenames in Doxygen @file comments 2022-04-01 11:34:43 +01:00
c
c_compatibility
c_global
c_std
debug
decimal
experimental libstdc++: Fix mismatched noexcept-specifiers in Filesystem TS 2022-04-01 13:17:18 +01:00
ext
parallel
precompiled libstdc++: Define std::expected for C++23 (P0323R12) 2022-03-27 18:50:31 +01:00
pstl
std libstdc++: Tweak source_location for clang trunk [PR105128] 2022-04-02 12:49:38 +02:00
tr1
tr2
Makefile.am libstdc++: Define std::expected for C++23 (P0323R12) 2022-03-27 18:50:31 +01:00
Makefile.in libstdc++: Define std::expected for C++23 (P0323R12) 2022-03-27 18:50:31 +01:00