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 Update copyright years. 2022-01-03 10:42:10 +01:00
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 Update copyright years. 2022-01-03 10:42:10 +01:00
bit libstdc++: Add more doxygen comments in <bit> 2022-03-25 20:21:48 +00:00
bitset Update copyright years. 2022-01-03 10:42:10 +01:00
charconv libstdc++: Ensure that std::from_chars is declared when supported 2022-03-16 16:06:29 +00:00
chrono Update copyright years. 2022-01-03 10:42:10 +01:00
codecvt Update copyright years. 2022-01-03 10:42:10 +01:00
complex libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
concepts Update copyright years. 2022-01-03 10:42:10 +01:00
condition_variable Update copyright years. 2022-01-03 10:42:10 +01:00
coroutine libstdc++: Install <coroutine> header for freestanding [PR103726] 2022-01-11 13:28:46 +00:00
deque Update copyright years. 2022-01-03 10:42:10 +01:00
execution Update copyright years. 2022-01-03 10:42:10 +01:00
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 Update copyright years. 2022-01-03 10:42:10 +01:00
fstream Update copyright years. 2022-01-03 10:42:10 +01:00
functional libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
future Update copyright years. 2022-01-03 10:42:10 +01:00
iomanip libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
ios Update copyright years. 2022-01-03 10:42:10 +01:00
iosfwd Update copyright years. 2022-01-03 10:42:10 +01:00
iostream Update copyright years. 2022-01-03 10:42:10 +01:00
istream Update copyright years. 2022-01-03 10:42:10 +01:00
iterator Update copyright years. 2022-01-03 10:42:10 +01:00
latch Update copyright years. 2022-01-03 10:42:10 +01:00
limits Update copyright years. 2022-01-03 10:42:10 +01:00
list Update copyright years. 2022-01-03 10:42:10 +01:00
locale Update copyright years. 2022-01-03 10:42:10 +01:00
map Update copyright years. 2022-01-03 10:42:10 +01:00
memory Update copyright years. 2022-01-03 10:42:10 +01:00
memory_resource Update copyright years. 2022-01-03 10:42:10 +01:00
mutex libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
numbers Update copyright years. 2022-01-03 10:42:10 +01:00
numeric libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
optional Update copyright years. 2022-01-03 10:42:10 +01:00
ostream libstdc++: Optimize std::ostream inserters for single characters 2022-01-11 13:28:46 +00:00
queue Update copyright years. 2022-01-03 10:42:10 +01:00
random Update copyright years. 2022-01-03 10:42:10 +01:00
ranges libstdc++: Implement P2415R2 changes to viewable_range / views::all 2022-02-22 09:37:58 -05:00
ratio Update copyright years. 2022-01-03 10:42:10 +01:00
regex Update copyright years. 2022-01-03 10:42:10 +01:00
scoped_allocator Update copyright years. 2022-01-03 10:42:10 +01:00
semaphore Update copyright years. 2022-01-03 10:42:10 +01:00
set Update copyright years. 2022-01-03 10:42:10 +01:00
shared_mutex Update copyright years. 2022-01-03 10:42:10 +01:00
source_location libstdc++: Tweak source_location for clang trunk [PR105128] 2022-04-02 12:49:38 +02:00
span Update copyright years. 2022-01-03 10:42:10 +01:00
spanstream libstdc++: Fix std::spanstream move assignment [PR104032] 2022-01-23 22:48:33 +00:00
sstream Update copyright years. 2022-01-03 10:42:10 +01:00
stack Update copyright years. 2022-01-03 10:42:10 +01:00
stacktrace libstdc++: Define <stacktrace> header for C++23 2022-01-17 12:13:02 +00:00
stdexcept Update copyright years. 2022-01-03 10:42:10 +01:00
stop_token Update copyright years. 2022-01-03 10:42:10 +01:00
streambuf Update copyright years. 2022-01-03 10:42:10 +01:00
string Update copyright years. 2022-01-03 10:42:10 +01:00
string_view libstdc++: Limit new basic_string(nullptr_t) constructor to C++23 [PR104099] 2022-01-18 20:41:46 +00:00
syncstream Update copyright years. 2022-01-03 10:42:10 +01:00
system_error Update copyright years. 2022-01-03 10:42:10 +01:00
thread Update copyright years. 2022-01-03 10:42:10 +01:00
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 Update copyright years. 2022-01-03 10:42:10 +01:00
unordered_map Update copyright years. 2022-01-03 10:42:10 +01:00
unordered_set Update copyright years. 2022-01-03 10:42:10 +01:00
utility libstdc++: Implement std::unreachable() for C++23 (P0627R6) 2022-04-01 13:17:18 +01:00
valarray Update copyright years. 2022-01-03 10:42:10 +01:00
variant libstdc++: Use __cpp_concepts instead of custom macro [PR103891] 2022-02-14 13:03:31 +00:00
vector Update copyright years. 2022-01-03 10:42:10 +01:00
version libstdc++: Implement std::unreachable() for C++23 (P0627R6) 2022-04-01 13:17:18 +01:00