gcc/libstdc++-v3/include/std
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
..
algorithm
any libstdc++: Simplify constraints for std::any construction [PR104242] 2022-03-18 15:40:03 +00:00
array Declare std::array members with attribute const [PR101831]. 2022-02-01 17:21:49 -07:00
atomic libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
barrier
bit libstdc++: Add more doxygen comments in <bit> 2022-03-25 20:21:48 +00:00
bitset
charconv libstdc++: Ensure that std::from_chars is declared when supported 2022-03-16 16:06:29 +00:00
chrono
codecvt
complex libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
concepts
condition_variable
coroutine
deque
execution
expected libstdc++: Define std::expected for C++23 (P0323R12) 2022-03-27 18:50:31 +01:00
filesystem libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
forward_list
fstream
functional libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
future
iomanip libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
ios
iosfwd
iostream
istream
iterator
latch
limits
list
locale
map
memory
memory_resource
mutex libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
numbers
numeric libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
optional
ostream
queue
random
ranges libstdc++: Implement P2415R2 changes to viewable_range / views::all 2022-02-22 09:37:58 -05:00
ratio
regex
scoped_allocator
semaphore
set
shared_mutex
source_location libstdc++: Tweak source_location for clang trunk [PR105128] 2022-04-02 12:49:38 +02:00
span
spanstream libstdc++: Fix std::spanstream move assignment [PR104032] 2022-01-23 22:48:33 +00:00
sstream
stack
stacktrace
stdexcept
stop_token
streambuf
string
string_view libstdc++: Limit new basic_string(nullptr_t) constructor to C++23 [PR104099] 2022-01-18 20:41:46 +00:00
syncstream
system_error
thread
tuple libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
type_traits libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
typeindex
unordered_map
unordered_set
utility libstdc++: Implement std::unreachable() for C++23 (P0627R6) 2022-04-01 13:17:18 +01:00
valarray
variant libstdc++: Use __cpp_concepts instead of custom macro [PR103891] 2022-02-14 13:03:31 +00:00
vector
version libstdc++: Implement std::unreachable() for C++23 (P0627R6) 2022-04-01 13:17:18 +01:00