Debian Codegraph @

libstdc++-v3/include/bits/version.def

raw
1 // Feature test macro definitions -*- C++ -*-
2 // Copyright (C) 2023-2025 Free Software Foundation, Inc.
3
4 // This file is part of the GNU ISO C++ Library. This library is free
5 // software; you can redistribute it and/or modify it under the
6 // terms of the GNU General Public License as published by the
7 // Free Software Foundation; either version 3, or (at your option)
8 // any later version.
9
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14
15 // Under Section 7 of GPL version 3, you are granted additional
16 // permissions described in the GCC Runtime Library Exception, version
17 // 3.1, as published by the Free Software Foundation.
18
19 // You should have received a copy of the GNU General Public License and
20 // a copy of the GCC Runtime Library Exception along with this program;
21 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
22 // <http://www.gnu.org/licenses/>.
23
24 AutoGen Definitions version.tpl;
25
26 // The top level variable ftms is an array of feature test macros. Each entry
27 // consists of a structure like following:
28
29 // Schema:
30 // ftms = {
31 // name = FTM NAME;
32 // [stdname = FTM STANDARD MACRO NAME;]
33 // [no_stdname = true;]
34 // values = {
35 // v = VALUE FOR FTM IF MATCHING;
36 // [extra_cond = STRING;]
37 // [cxxmin = NUMBER;]
38 // [gnuxxmin = NUMBER;]
39 // [gthread = yes|no;]
40 // [hosted = yes|no;]
41 // [cxx11abi = yes|no;]
42 // }; ...
43 // };
44
45 // The elements in square brackets are optional. These are formulated into a
46 // logical expression like:
47 // ((strict && c++ >= cxxmin) || (!strict && c++ >= gnuxxmin))
48 // && (gthr <=> gthread)
49 // && (host <=> hosted)
50 // && (cxx11 <=> cxx11abi)
51 // && (extra_cond)
52 // Where gthr, cxx11 and host are _GLIBCXX_HAS_GTHREADS, _GLIBCXX_USE_CXX11_ABI
53 // and _GLIBCXX_HOSTED respectively. If any of these are omitted, their
54 // sub-expressions are equivalent to the identity. Specially, if gnuxxmin is
55 // omitted, it is taken to be the value of cxxmin, and so, only if both are
56 // omitted, the clause is omitted.
57
58 // stdname configures the name of the *standard* macro emitted, i.e. it
59 // replaces only the __cpp_lib_ macro in the emitted definition. Defaults to
60 // __cpp_lib_${name}. If no_stdname exists (with any value), the stdname
61 // define is not emitted.
62
63 // N.B This list needs to be in topological sort order, as later entries in
64 // this list can and do use the earlier entries.
65
66 ftms = {
67 name = incomplete_container_elements;
68 values = {
69 v = 201505;
70 hosted = yes;
71 };
72 };
73
74 ftms = {
75 name = uncaught_exceptions;
76 values = {
77 v = 201411;
78 cxxmin = 17;
79 gnuxxmin = 03;
80 };
81 };
82
83 ftms = {
84 name = allocator_traits_is_always_equal;
85 values = {
86 v = 201411;
87 cxxmin = 11;
88 };
89 };
90
91 ftms = {
92 name = is_null_pointer;
93 values = {
94 v = 201309;
95 cxxmin = 11;
96 };
97 };
98
99 ftms = {
100 name = result_of_sfinae;
101 values = {
102 v = 201210;
103 cxxmin = 11;
104 };
105 };
106
107 ftms = {
108 name = shared_ptr_arrays;
109 values = {
110 v = 201707;
111 cxxmin = 20;
112 hosted = yes;
113 };
114 values = {
115 v = 201611;
116 cxxmin = 11;
117 hosted = yes;
118 };
119 };
120
121 ftms = {
122 name = is_swappable;
123 values = {
124 v = 201603;
125 cxxmin = 17;
126 gnuxxmin = 11;
127 };
128 };
129
130 ftms = {
131 name = void_t;
132 values = {
133 v = 201411;
134 cxxmin = 17;
135 gnuxxmin = 11;
136 };
137 };
138
139 ftms = {
140 name = enable_shared_from_this;
141 values = {
142 v = 201603;
143 cxxmin = 17;
144 gnuxxmin = 11;
145 hosted = yes;
146 };
147 };
148
149 ftms = {
150 name = math_spec_funcs;
151 stdname = "__STDCPP_MATH_SPEC_FUNCS__";
152 values = {
153 v = 201003;
154 cxxmin = 11;
155 };
156 };
157
158 ftms = {
159 name = coroutine;
160 values = {
161 v = 201902;
162 // It is very likely that earlier versions would work, but they are
163 // untested.
164 cxxmin = 14;
165 extra_cond = "__cpp_impl_coroutine";
166 };
167 };
168
169 ftms = {
170 name = exchange_function;
171 values = {
172 v = 201304;
173 cxxmin = 14;
174 };
175 };
176
177 ftms = {
178 name = integer_sequence;
179 values = {
180 v = 201304;
181 cxxmin = 14;
182 };
183 };
184
185 ftms = {
186 name = integral_constant_callable;
187 values = {
188 v = 201304;
189 cxxmin = 14;
190 };
191 };
192
193 ftms = {
194 name = is_final;
195 values = {
196 v = 201402;
197 cxxmin = 14;
198 };
199 };
200
201 ftms = {
202 name = make_reverse_iterator;
203 values = {
204 v = 201402;
205 cxxmin = 14;
206 };
207 };
208
209 ftms = {
210 name = null_iterators;
211 values = {
212 v = 201304;
213 cxxmin = 14;
214 };
215 };
216
217 ftms = {
218 name = transformation_trait_aliases;
219 values = {
220 v = 201304;
221 cxxmin = 14;
222 };
223 };
224
225 ftms = {
226 name = transparent_operators;
227 values = {
228 v = 201510;
229 cxxmin = 14;
230 };
231 };
232
233 ftms = {
234 name = tuple_element_t;
235 values = {
236 v = 201402;
237 cxxmin = 14;
238 };
239 };
240
241 ftms = {
242 name = tuples_by_type;
243 values = {
244 v = 201304;
245 cxxmin = 14;
246 };
247 };
248
249 ftms = {
250 name = robust_nonmodifying_seq_ops;
251 values = {
252 v = 201304;
253 cxxmin = 14;
254 };
255 };
256
257 ftms = {
258 name = to_chars;
259 values = {
260 v = 202306;
261 cxxmin = 26;
262 extra_cond = "_GLIBCXX_FLOAT_IS_IEEE_BINARY32 "
263 "&& _GLIBCXX_DOUBLE_IS_IEEE_BINARY64 "
264 "&& __SIZE_WIDTH__ >= 32";
265 };
266 values = {
267 v = 201611;
268 cxxmin = 14;
269 extra_cond = "_GLIBCXX_FLOAT_IS_IEEE_BINARY32 "
270 "&& _GLIBCXX_DOUBLE_IS_IEEE_BINARY64 "
271 "&& __SIZE_WIDTH__ >= 32";
272 };
273 };
274
275 ftms = {
276 name = chrono_udls;
277 values = {
278 v = 201304;
279 cxxmin = 14;
280 };
281 };
282
283 ftms = {
284 name = complex_udls;
285 values = {
286 v = 201309;
287 cxxmin = 14;
288 hosted = yes;
289 };
290 };
291
292 ftms = {
293 name = generic_associative_lookup;
294 values = {
295 v = 201304;
296 cxxmin = 14;
297 hosted = yes;
298 };
299 };
300
301 ftms = {
302 name = make_unique;
303 values = {
304 v = 201304;
305 cxxmin = 14;
306 hosted = yes;
307 };
308 };
309
310 ftms = {
311 name = quoted_string_io;
312 values = {
313 v = 201304;
314 cxxmin = 14;
315 hosted = yes;
316 };
317 };
318
319 ftms = {
320 name = shared_timed_mutex;
321 values = {
322 v = 201402;
323 cxxmin = 14;
324 hosted = yes;
325 gthread = yes;
326 };
327 };
328
329 ftms = {
330 name = string_udls;
331 values = {
332 v = 201304;
333 cxxmin = 14;
334 hosted = yes;
335 };
336 };
337
338 ftms = {
339 name = addressof_constexpr;
340 values = {
341 // _GLIBCXX_RESOLVE_LIB_DEFECTS
342 // 2296. std::addressof should be constexpr
343 v = 201603;
344 cxxmin = 17;
345 };
346 };
347
348 ftms = {
349 name = any;
350 values = {
351 v = 201606;
352 cxxmin = 17;
353 };
354 };
355
356 ftms = {
357 name = apply;
358 values = {
359 v = 201603;
360 cxxmin = 17;
361 };
362 };
363
364 ftms = {
365 name = as_const;
366 values = {
367 v = 201510;
368 cxxmin = 17;
369 };
370 };
371
372 ftms = {
373 name = atomic_is_always_lock_free;
374 values = {
375 v = 201603;
376 cxxmin = 17;
377 };
378 };
379
380 ftms = {
381 name = bool_constant;
382 values = {
383 v = 201505;
384 cxxmin = 17;
385 };
386 };
387
388 ftms = {
389 name = byte;
390 values = {
391 v = 201603;
392 cxxmin = 17;
393 };
394 };
395
396 ftms = {
397 name = has_unique_object_representations;
398 values = {
399 v = 201606;
400 cxxmin = 17;
401 extra_cond = "defined(_GLIBCXX_HAVE_BUILTIN_HAS_UNIQ_OBJ_REP)";
402 };
403 };
404
405 ftms = {
406 name = hardware_interference_size;
407 values = {
408 v = 201703;
409 cxxmin = 17;
410 extra_cond = "defined(__GCC_DESTRUCTIVE_SIZE)";
411 };
412 };
413
414 ftms = {
415 name = invoke;
416 values = {
417 v = 201411;
418 cxxmin = 17;
419 };
420 };
421
422 ftms = {
423 name = is_aggregate;
424 values = {
425 v = 201703;
426 cxxmin = 17;
427 extra_cond = "defined(_GLIBCXX_HAVE_BUILTIN_IS_AGGREGATE)";
428 };
429 };
430
431 ftms = {
432 name = is_invocable;
433 values = {
434 v = 201703;
435 cxxmin = 17;
436 };
437 };
438
439 ftms = {
440 name = launder;
441 values = {
442 v = 201606;
443 cxxmin = 17;
444 extra_cond = "defined(_GLIBCXX_HAVE_BUILTIN_LAUNDER)";
445 };
446 };
447
448 ftms = {
449 name = logical_traits;
450 values = {
451 v = 201510;
452 cxxmin = 17;
453 };
454 };
455
456 ftms = {
457 name = make_from_tuple;
458 values = {
459 v = 201606;
460 cxxmin = 17;
461 };
462 };
463
464 ftms = {
465 name = not_fn;
466 values = {
467 v = 201603;
468 cxxmin = 17;
469 };
470 };
471
472 ftms = {
473 name = type_trait_variable_templates;
474 values = {
475 v = 201510;
476 cxxmin = 17;
477 };
478 };
479
480 ftms = {
481 name = variant;
482 values = {
483 v = 202306;
484 cxxmin = 26;
485 extra_cond = "__cpp_concepts >= 202002L && __cpp_constexpr >= 201811L && __cpp_explicit_this_parameter";
486 };
487 values = {
488 v = 202106;
489 cxxmin = 20;
490 extra_cond = "__cpp_concepts >= 202002L && __cpp_constexpr >= 201811L";
491 };
492 values = {
493 v = 202102;
494 cxxmin = 17;
495 };
496 };
497
498 ftms = {
499 // Used in earlier draft of SD6.
500 name = lcm;
501 values = {
502 v = 201606;
503 cxxmin = 17;
504 };
505 };
506
507 ftms = {
508 // Used in earlier draft of SD6.
509 name = gcd;
510 values = {
511 v = 201606;
512 cxxmin = 17;
513 };
514 };
515
516 ftms = {
517 name = gcd_lcm;
518 values = {
519 v = 201606;
520 cxxmin = 17;
521 };
522 };
523
524 ftms = {
525 name = raw_memory_algorithms;
526 values = {
527 v = 202411;
528 cxxmin = 26;
529 extra_cond = "__cpp_constexpr >= 202406L";
530 };
531 values = {
532 v = 201606;
533 cxxmin = 17;
534 };
535 };
536
537 ftms = {
538 name = array_constexpr;
539 values = {
540 v = 201811;
541 cxxmin = 20;
542 };
543 values = {
544 v = 201803;
545 cxxmin = 17;
546 };
547 };
548
549 ftms = {
550 name = nonmember_container_access;
551 values = {
552 v = 201411;
553 cxxmin = 17;
554 };
555 };
556
557 ftms = {
558 name = clamp;
559 values = {
560 v = 201603;
561 cxxmin = 17;
562 };
563 };
564
565 ftms = {
566 name = sample;
567 values = {
568 v = 201603;
569 cxxmin = 17;
570 };
571 };
572
573 ftms = {
574 name = boyer_moore_searcher;
575 values = {
576 v = 201603;
577 cxxmin = 17;
578 hosted = yes;
579 };
580 };
581
582 ftms = {
583 name = chrono;
584 values = {
585 v = 201907;
586 cxxmin = 20;
587 hosted = yes;
588 cxx11abi = yes; // std::chrono::tzdb requires cxx11 std::string
589 };
590 values = {
591 v = 201611;
592 cxxmin = 17;
593 hosted = yes;
594 };
595 };
596
597 ftms = {
598 name = execution;
599 values = {
600 v = 201902; // FIXME: should be 201603L
601 cxxmin = 17;
602 hosted = yes;
603 };
604 };
605
606 ftms = {
607 name = filesystem;
608 values = {
609 v = 201703;
610 cxxmin = 17;
611 hosted = yes;
612 };
613 };
614
615 ftms = {
616 name = hypot;
617 values = {
618 v = 201603;
619 cxxmin = 17;
620 hosted = yes;
621 };
622 };
623
624 ftms = {
625 name = map_try_emplace;
626 values = {
627 v = 201411;
628 cxxmin = 17;
629 hosted = yes;
630 };
631 };
632
633 ftms = {
634 name = math_special_functions;
635 values = {
636 v = 201603;
637 cxxmin = 17;
638 hosted = yes;
639 };
640 };
641
642 ftms = {
643 name = memory_resource;
644 values = {
645 v = 201603;
646 cxxmin = 17;
647 hosted = yes;
648 gthread = yes;
649 };
650 values = {
651 v = 1;
652 /* For when there's no gthread. */
653 cxxmin = 17;
654 hosted = yes;
655 gthread = no;
656 };
657 };
658
659 ftms = {
660 name = node_extract;
661 values = {
662 v = 201606;
663 cxxmin = 17;
664 hosted = yes;
665 };
666 };
667
668 ftms = {
669 name = parallel_algorithm;
670 values = {
671 v = 201603;
672 cxxmin = 17;
673 hosted = yes;
674 };
675 };
676
677 ftms = {
678 name = scoped_lock;
679 values = {
680 v = 201703;
681 cxxmin = 17;
682 };
683 };
684
685 ftms = {
686 name = shared_mutex;
687 values = {
688 v = 201505;
689 cxxmin = 17;
690 hosted = yes;
691 gthread = yes;
692 };
693 };
694
695 ftms = {
696 name = shared_ptr_weak_type;
697 values = {
698 v = 201606;
699 cxxmin = 17;
700 hosted = yes;
701 };
702 };
703
704 ftms = {
705 name = string_view;
706 values = {
707 v = 202403;
708 cxxmin = 26;
709 hosted = yes;
710 };
711 values = {
712 v = 201803;
713 cxxmin = 17;
714 hosted = yes;
715 };
716 };
717
718 ftms = {
719 name = unordered_map_try_emplace;
720 values = {
721 v = 201411;
722 cxxmin = 17;
723 hosted = yes;
724 };
725 };
726
727 ftms = {
728 name = assume_aligned;
729 values = {
730 v = 201811;
731 cxxmin = 20;
732 };
733 };
734
735 ftms = {
736 name = atomic_flag_test;
737 values = {
738 v = 201907;
739 cxxmin = 20;
740 };
741 };
742
743 ftms = {
744 name = atomic_float;
745 values = {
746 v = 201711;
747 cxxmin = 20;
748 };
749 };
750
751 ftms = {
752 name = atomic_lock_free_type_aliases;
753 values = {
754 v = 201907;
755 cxxmin = 20;
756 extra_cond = "(__GCC_ATOMIC_INT_LOCK_FREE | __GCC_ATOMIC_LONG_LOCK_FREE | __GCC_ATOMIC_CHAR_LOCK_FREE) & 2";
757 };
758 };
759
760 ftms = {
761 name = atomic_ref;
762 values = {
763 v = 201806;
764 cxxmin = 20;
765 };
766 };
767
768 ftms = {
769 name = atomic_value_initialization;
770 values = {
771 v = 201911;
772 cxxmin = 20;
773 extra_cond = "__cpp_concepts >= 201907L";
774 };
775 };
776
777 ftms = {
778 name = bind_front;
779 values = {
780 v = 201907;
781 cxxmin = 20;
782 };
783 };
784
785 ftms = {
786 name = bind_back;
787 values = {
788 v = 202202;
789 cxxmin = 23;
790 extra_cond = "__cpp_explicit_this_parameter";
791 };
792 };
793
794 ftms = {
795 name = starts_ends_with;
796 values = {
797 v = 201711;
798 cxxmin = 20;
799 };
800 };
801
802 ftms = {
803 name = bit_cast;
804 values = {
805 v = 201806;
806 cxxmin = 20;
807 extra_cond = "__has_builtin(__builtin_bit_cast)";
808 };
809 };
810
811 ftms = {
812 name = bitops;
813 values = {
814 v = 201907;
815 cxxmin = 20;
816 };
817 };
818
819 ftms = {
820 name = bounded_array_traits;
821 values = {
822 v = 201902;
823 cxxmin = 20;
824 };
825 };
826
827 ftms = {
828 name = concepts;
829 values = {
830 v = 202002;
831 cxxmin = 20;
832 extra_cond = "__cpp_concepts >= 201907L";
833 };
834 };
835
836 // Moved down here (after concepts) by topological sort.
837 ftms = {
838 name = optional;
839 values = {
840 v = 202110;
841 cxxmin = 23;
842 extra_cond = "__glibcxx_concepts";
843 };
844 values = {
845 v = 202106;
846 cxxmin = 20;
847 };
848 values = {
849 v = 201606;
850 cxxmin = 17;
851 };
852 };
853
854 ftms = {
855 name = destroying_delete;
856 values = {
857 v = 201806;
858 cxxmin = 20;
859 extra_cond = "__cpp_impl_destroying_delete";
860 };
861 };
862
863 ftms = {
864 name = constexpr_string_view;
865 values = {
866 v = 201811;
867 cxxmin = 20;
868 };
869 };
870
871 ftms = {
872 name = endian;
873 values = {
874 v = 201907;
875 cxxmin = 20;
876 };
877 };
878
879 ftms = {
880 name = int_pow2;
881 values = {
882 v = 202002;
883 cxxmin = 20;
884 };
885 };
886
887 ftms = {
888 name = integer_comparison_functions;
889 values = {
890 v = 202002;
891 cxxmin = 20;
892 };
893 };
894
895 ftms = {
896 name = is_constant_evaluated;
897 values = {
898 v = 201811;
899 cxxmin = 20;
900 extra_cond = "defined(_GLIBCXX_HAVE_IS_CONSTANT_EVALUATED)";
901 };
902 };
903
904 // Moved down here (after is_constant_evaluated) by topological sort.
905 ftms = {
906 name = constexpr_char_traits;
907 values = {
908 // Unofficial macro indicating P1032R1 support in C++20
909 v = 201811;
910 cxxmin = 20;
911 extra_cond = "defined(__glibcxx_is_constant_evaluated)";
912 };
913 values = {
914 // Unofficial macro indicating P0426R1 support in C++17
915 v = 201611;
916 cxxmin = 17;
917 extra_cond = "_GLIBCXX_HAVE_IS_CONSTANT_EVALUATED";
918 };
919 };
920
921 ftms = {
922 name = is_layout_compatible;
923 values = {
924 v = 201907;
925 cxxmin = 20;
926 extra_cond = "__has_builtin(__is_layout_compatible) "
927 "&& __has_builtin(__builtin_is_corresponding_member)";
928 };
929 };
930
931 ftms = {
932 name = is_nothrow_convertible;
933 values = {
934 v = 201806;
935 cxxmin = 20;
936 };
937 };
938
939 ftms = {
940 name = is_pointer_interconvertible;
941 values = {
942 v = 201907;
943 cxxmin = 20;
944 extra_cond =
945 "__has_builtin(__is_pointer_interconvertible_base_of) "
946 "&& __has_builtin(__builtin_is_pointer_interconvertible_with_class)";
947 };
948 };
949
950 ftms = {
951 name = math_constants;
952 values = {
953 v = 201907;
954 cxxmin = 20;
955 };
956 };
957
958 ftms = {
959 name = make_obj_using_allocator;
960 values = {
961 // Not specified by C++20, used internally
962 v = 201811;
963 cxxmin = 20;
964 extra_cond = "__cpp_concepts";
965 };
966 };
967
968 ftms = {
969 name = remove_cvref;
970 values = {
971 v = 201711;
972 cxxmin = 20;
973 };
974 };
975
976 ftms = {
977 name = source_location;
978 values = {
979 v = 201907;
980 cxxmin = 20;
981 extra_cond = "__has_builtin(__builtin_source_location)";
982 };
983 };
984
985 ftms = {
986 name = span;
987 values = {
988 v = 202311;
989 cxxmin = 26;
990 extra_cond = "__glibcxx_concepts";
991 };
992 values = {
993 v = 202002;
994 cxxmin = 20;
995 extra_cond = "__glibcxx_concepts";
996 };
997 };
998
999 ftms = {
1000 name = ssize;
1001 values = {
1002 v = 201902;
1003 cxxmin = 20;
1004 };
1005 };
1006
1007 ftms = {
1008 name = three_way_comparison;
1009 values = {
1010 v = 201907;
1011 cxxmin = 20;
1012 extra_cond = "__cpp_impl_three_way_comparison >= 201907L "
1013 "&& __glibcxx_concepts";
1014 };
1015 };
1016
1017 ftms = {
1018 name = to_address;
1019 values = {
1020 v = 201711;
1021 cxxmin = 20;
1022 };
1023 };
1024
1025 ftms = {
1026 name = to_array;
1027 values = {
1028 v = 201907;
1029 cxxmin = 20;
1030 extra_cond = "__cpp_generic_lambdas >= 201707L";
1031 };
1032 };
1033
1034 ftms = {
1035 name = type_identity;
1036 values = {
1037 v = 201806;
1038 cxxmin = 20;
1039 };
1040 };
1041
1042 ftms = {
1043 name = unwrap_ref;
1044 values = {
1045 v = 201811;
1046 cxxmin = 20;
1047 };
1048 };
1049
1050 ftms = {
1051 name = constexpr_iterator;
1052 values = {
1053 v = 201811;
1054 cxxmin = 20;
1055 };
1056 };
1057
1058 ftms = {
1059 name = interpolate;
1060 values = {
1061 v = 201902;
1062 cxxmin = 20;
1063 };
1064 };
1065
1066 ftms = {
1067 name = constexpr_utility;
1068 values = {
1069 v = 201811;
1070 cxxmin = 20;
1071 };
1072 };
1073
1074 ftms = {
1075 name = shift;
1076 values = {
1077 v = 201806;
1078 cxxmin = 20;
1079 };
1080 };
1081
1082 ftms = {
1083 name = ranges;
1084 values = {
1085 v = 202406;
1086 cxxmin = 26;
1087 extra_cond = "__glibcxx_concepts";
1088 };
1089 values = {
1090 v = 202302;
1091 cxxmin = 23;
1092 extra_cond = "__glibcxx_concepts";
1093 };
1094 values = {
1095 v = 202110;
1096 cxxmin = 20;
1097 extra_cond = "__glibcxx_concepts";
1098 };
1099 };
1100
1101 ftms = {
1102 name = constexpr_numeric;
1103 values = {
1104 v = 201911;
1105 cxxmin = 20;
1106 };
1107 };
1108
1109 ftms = {
1110 name = constexpr_functional;
1111 values = {
1112 v = 201907;
1113 cxxmin = 20;
1114 };
1115 };
1116
1117 ftms = {
1118 name = constexpr_algorithms;
1119 values = {
1120 v = 202306;
1121 cxxmin = 26;
1122 };
1123 values = {
1124 v = 201806;
1125 cxxmin = 20;
1126 };
1127 };
1128
1129 ftms = {
1130 name = constexpr_tuple;
1131 values = {
1132 v = 201811;
1133 cxxmin = 20;
1134 };
1135 };
1136
1137 ftms = {
1138 name = constexpr_memory;
1139 values = {
1140 v = 202202;
1141 cxxmin = 23;
1142 extra_cond = "__cpp_constexpr_dynamic_alloc";
1143 };
1144 values = {
1145 v = 201811;
1146 cxxmin = 20;
1147 };
1148 };
1149
1150 ftms = {
1151 name = atomic_shared_ptr;
1152 values = {
1153 v = 201711;
1154 cxxmin = 20;
1155 hosted = yes;
1156 };
1157 };
1158
1159 ftms = {
1160 name = atomic_wait;
1161 // atomic_wait is available if either futexes or gthread are.
1162 values = {
1163 v = 201907;
1164 cxxmin = 20;
1165 hosted = yes;
1166 gthread = yes;
1167 };
1168 values = {
1169 v = 201907;
1170 cxxmin = 20;
1171 hosted = yes;
1172 gthread = no;
1173 extra_cond = "defined(_GLIBCXX_HAVE_LINUX_FUTEX)";
1174 };
1175 };
1176
1177 ftms = {
1178 name = barrier;
1179 values = {
1180 v = 201907;
1181 cxxmin = 20;
1182 // This condition carries in the hosted&&(futex||gthread) logic from above.
1183 extra_cond = "__cpp_aligned_new && __glibcxx_atomic_wait";
1184 };
1185 };
1186
1187 ftms = {
1188 name = format;
1189 // 202305 P2757R3 Type checking format args
1190 // 202306 P2637R3 Member visit
1191 // 202311 P2918R2 Runtime format strings II
1192 values = {
1193 v = 202311;
1194 cxxmin = 26;
1195 hosted = yes;
1196 };
1197 // 201907 Text Formatting, Integration of chrono, printf corner cases.
1198 // 202106 std::format improvements.
1199 // 202110 Fixing locale handling in chrono formatters, generator-like types.
1200 // 202207 Encodings in localized formatting of chrono, basic-format-string.
1201 // 202304 P2510R3 Formatting pointers
1202 values = {
1203 v = 202304;
1204 cxxmin = 20;
1205 hosted = yes;
1206 };
1207 };
1208
1209 ftms = {
1210 name = format_uchar;
1211 values = {
1212 v = 202311;
1213 cxxmin = 20;
1214 hosted = yes;
1215 };
1216 };
1217
1218 // FIXME: #define __glibcxx_execution 201902L
1219
1220 ftms = {
1221 name = constexpr_complex;
1222 values = {
1223 v = 201711;
1224 cxxmin = 20;
1225 hosted = yes;
1226 };
1227 };
1228
1229 ftms = {
1230 name = constexpr_dynamic_alloc;
1231 values = {
1232 v = 201907;
1233 cxxmin = 20;
1234 hosted = yes;
1235 };
1236 };
1237
1238 ftms = {
1239 name = constexpr_string;
1240 values = {
1241 v = 201907;
1242 cxxmin = 20;
1243 hosted = yes;
1244 cxx11abi = yes;
1245 extra_cond = "defined(__glibcxx_is_constant_evaluated)";
1246 };
1247 values = {
1248 v = 201811;
1249 cxxmin = 20;
1250 hosted = yes;
1251 cxx11abi = no;
1252 extra_cond = "defined(__glibcxx_is_constant_evaluated)";
1253 };
1254 values = {
1255 v = 201611;
1256 cxxmin = 17;
1257 hosted = yes;
1258 extra_cond = "_GLIBCXX_HAVE_IS_CONSTANT_EVALUATED";
1259 };
1260 };
1261
1262 ftms = {
1263 name = constexpr_vector;
1264 values = {
1265 v = 201907;
1266 cxxmin = 20;
1267 hosted = yes;
1268 };
1269 };
1270
1271 ftms = {
1272 name = constrained_equality;
1273 values = {
1274 v = 202411;
1275 cxxmin = 23;
1276 extra_cond = "__glibcxx_three_way_comparison";
1277 };
1278 values = {
1279 v = 202403;
1280 cxxmin = 20;
1281 extra_cond = "__glibcxx_three_way_comparison";
1282 };
1283 };
1284
1285 ftms = {
1286 name = erase_if;
1287 values = {
1288 v = 202002;
1289 cxxmin = 20;
1290 hosted = yes;
1291 };
1292 };
1293
1294 ftms = {
1295 name = generic_unordered_lookup;
1296 values = {
1297 v = 201811;
1298 cxxmin = 20;
1299 hosted = yes;
1300 };
1301 };
1302
1303 ftms = {
1304 name = jthread;
1305 values = {
1306 v = 201911;
1307 gthread = yes;
1308 hosted = yes;
1309 cxxmin = 20;
1310 };
1311 };
1312
1313 ftms = {
1314 name = latch;
1315 values = {
1316 v = 201907;
1317 cxxmin = 20;
1318 extra_cond = "__glibcxx_atomic_wait";
1319 };
1320 };
1321
1322 ftms = {
1323 name = list_remove_return_type;
1324 values = {
1325 v = 201806;
1326 cxxmin = 20;
1327 hosted = yes;
1328 };
1329 };
1330
1331 ftms = {
1332 name = polymorphic_allocator;
1333 values = {
1334 v = 201902;
1335 cxxmin = 20;
1336 hosted = yes;
1337 };
1338 };
1339
1340 ftms = {
1341 name = move_iterator_concept;
1342 values = {
1343 v = 202207;
1344 // This is P2520R0, a C++23 change, but we treat it as a DR against C++20.
1345 cxxmin = 20;
1346 extra_cond = "__glibcxx_concepts";
1347 };
1348 };
1349
1350 ftms = {
1351 name = semaphore;
1352 values = {
1353 v = 201907;
1354 cxxmin = 20;
1355 hosted = yes;
1356 extra_cond = "__glibcxx_atomic_wait || _GLIBCXX_HAVE_POSIX_SEMAPHORE";
1357 };
1358 };
1359
1360 ftms = {
1361 name = smart_ptr_for_overwrite;
1362 values = {
1363 v = 202002;
1364 cxxmin = 20;
1365 hosted = yes;
1366 };
1367 };
1368
1369 ftms = {
1370 name = syncbuf;
1371 values = {
1372 v = 201803;
1373 cxxmin = 20;
1374 hosted = yes;
1375 cxx11abi = yes;
1376 };
1377 };
1378
1379 ftms = {
1380 name = byteswap;
1381 values = {
1382 v = 202110;
1383 cxxmin = 23;
1384 };
1385 };
1386
1387 ftms = {
1388 name = constexpr_charconv;
1389 values = {
1390 v = 202207;
1391 cxxmin = 23;
1392 };
1393 };
1394
1395 ftms = {
1396 name = constexpr_typeinfo;
1397 values = {
1398 v = 202106;
1399 cxxmin = 23;
1400 };
1401 };
1402
1403 ftms = {
1404 name = expected;
1405 values = {
1406 v = 202211;
1407 cxxmin = 23;
1408 extra_cond = "__cpp_concepts >= 202002L";
1409 };
1410 };
1411
1412 ftms = {
1413 name = format_ranges;
1414 // 202207 P2286R8 Formatting Ranges
1415 // 202207 P2585R1 Improving default container formatting
1416 // LWG3750 Too many papers bump __cpp_lib_format
1417 values = {
1418 v = 202207;
1419 cxxmin = 23;
1420 hosted = yes;
1421 };
1422 };
1423
1424 ftms = {
1425 name = freestanding_algorithm;
1426 values = {
1427 v = 202311;
1428 // This is a C++26 feature, but we support it in C++23.
1429 cxxmin = 23;
1430 };
1431 };
1432
1433 ftms = {
1434 name = freestanding_array;
1435 values = {
1436 v = 202311;
1437 // This is a C++26 feature, but we support it in C++23.
1438 cxxmin = 23;
1439 };
1440 };
1441
1442 ftms = {
1443 name = freestanding_cstring;
1444 values = {
1445 v = 202311;
1446 // This is a C++26 feature, but we support it in C++23.
1447 cxxmin = 23;
1448 };
1449 };
1450
1451 ftms = {
1452 name = freestanding_expected;
1453 values = {
1454 v = 202311;
1455 cxxmin = 23;
1456 // This is a C++26 feature, but we support it in C++23.
1457 extra_cond = "__cpp_lib_expected";
1458 };
1459 };
1460
1461 ftms = {
1462 name = freestanding_optional;
1463 values = {
1464 v = 202311;
1465 // This is a C++26 feature, but we support it in C++23.
1466 cxxmin = 23;
1467 };
1468 };
1469
1470 ftms = {
1471 name = freestanding_string_view;
1472 values = {
1473 v = 202311;
1474 // This is a C++26 feature, but we support it in C++23.
1475 cxxmin = 23;
1476 };
1477 };
1478
1479 ftms = {
1480 name = freestanding_variant;
1481 values = {
1482 v = 202311;
1483 // This is a C++26 feature, but we support it in C++23.
1484 cxxmin = 23;
1485 };
1486 };
1487
1488 ftms = {
1489 name = invoke_r;
1490 values = {
1491 v = 202106;
1492 cxxmin = 23;
1493 };
1494 };
1495
1496 ftms = {
1497 name = is_scoped_enum;
1498 values = {
1499 v = 202011;
1500 cxxmin = 23;
1501 };
1502 };
1503
1504 ftms = {
1505 name = reference_from_temporary;
1506 values = {
1507 v = 202202;
1508 extra_cond =
1509 "__has_builtin(__reference_constructs_from_temporary) "
1510 "&& __has_builtin(__reference_converts_from_temporary)";
1511 cxxmin = 23;
1512 };
1513 };
1514
1515 ftms = {
1516 name = containers_ranges;
1517 values = {
1518 v = 202202;
1519 cxxmin = 23;
1520 hosted = yes;
1521 };
1522 };
1523
1524 ftms = {
1525 name = ranges_to_container;
1526 values = {
1527 v = 202202;
1528 cxxmin = 23;
1529 hosted = yes;
1530 };
1531 };
1532
1533 ftms = {
1534 name = ranges_zip;
1535 values = {
1536 v = 202110;
1537 cxxmin = 23;
1538 };
1539 };
1540
1541 ftms = {
1542 name = ranges_chunk;
1543 values = {
1544 v = 202202;
1545 cxxmin = 23;
1546 };
1547 };
1548
1549 ftms = {
1550 name = ranges_slide;
1551 values = {
1552 v = 202202;
1553 cxxmin = 23;
1554 };
1555 };
1556
1557 ftms = {
1558 name = ranges_chunk_by;
1559 values = {
1560 v = 202202;
1561 cxxmin = 23;
1562 };
1563 };
1564
1565 ftms = {
1566 name = ranges_join_with;
1567 values = {
1568 v = 202202;
1569 cxxmin = 23;
1570 };
1571 };
1572
1573 ftms = {
1574 name = ranges_repeat;
1575 values = {
1576 v = 202207;
1577 cxxmin = 23;
1578 };
1579 };
1580
1581 ftms = {
1582 name = ranges_stride;
1583 values = {
1584 v = 202207;
1585 cxxmin = 23;
1586 };
1587 };
1588
1589 ftms = {
1590 name = ranges_cartesian_product;
1591 values = {
1592 v = 202207;
1593 cxxmin = 23;
1594 };
1595 };
1596
1597 ftms = {
1598 name = ranges_as_rvalue;
1599 values = {
1600 v = 202207;
1601 cxxmin = 23;
1602 };
1603 };
1604
1605 ftms = {
1606 name = ranges_as_const;
1607 values = {
1608 v = 202311;
1609 cxxmin = 23;
1610 };
1611 };
1612
1613 ftms = {
1614 name = ranges_enumerate;
1615 values = {
1616 v = 202302;
1617 cxxmin = 23;
1618 };
1619 };
1620
1621 ftms = {
1622 name = ranges_fold;
1623 values = {
1624 v = 202207;
1625 cxxmin = 23;
1626 };
1627 };
1628
1629 ftms = {
1630 name = ranges_contains;
1631 values = {
1632 v = 202207;
1633 cxxmin = 23;
1634 };
1635 };
1636
1637 ftms = {
1638 name = ranges_iota;
1639 values = {
1640 v = 202202;
1641 cxxmin = 23;
1642 };
1643 };
1644
1645 ftms = {
1646 name = ranges_find_last;
1647 values = {
1648 v = 202207;
1649 cxxmin = 23;
1650 };
1651 };
1652
1653 ftms = {
1654 name = constexpr_bitset;
1655 values = {
1656 v = 202202;
1657 cxxmin = 23;
1658 hosted = yes;
1659 extra_cond = "__cpp_constexpr_dynamic_alloc";
1660 };
1661 };
1662
1663 ftms = {
1664 name = stdatomic_h;
1665 values = {
1666 v = 202011;
1667 cxxmin = 23;
1668 };
1669 };
1670
1671 ftms = {
1672 name = stdbit_h;
1673 values = {
1674 v = 202603;
1675 cxxmin = 26;
1676 };
1677 };
1678
1679 ftms = {
1680 name = stdckdint_h;
1681 values = {
1682 v = 202603;
1683 cxxmin = 26;
1684 };
1685 };
1686
1687 ftms = {
1688 name = adaptor_iterator_pair_constructor;
1689 values = {
1690 v = 202106;
1691 cxxmin = 23;
1692 hosted = yes;
1693 };
1694 };
1695
1696 ftms = {
1697 name = flat_map;
1698 values = {
1699 v = 202207;
1700 cxxmin = 23;
1701 };
1702 };
1703
1704 ftms = {
1705 name = flat_set;
1706 values = {
1707 v = 202207;
1708 cxxmin = 23;
1709 };
1710 };
1711
1712 ftms = {
1713 name = common_reference;
1714 values = {
1715 v = 202302;
1716 cxxmin = 20; // We treat P2655R3 as a DR against C++20.
1717 };
1718 };
1719
1720 ftms = {
1721 name = formatters;
1722 values = {
1723 v = 202302;
1724 cxxmin = 23;
1725 hosted = yes;
1726 };
1727 };
1728
1729 ftms = {
1730 name = forward_like;
1731 values = {
1732 v = 202207;
1733 cxxmin = 23;
1734 };
1735 };
1736
1737 ftms = {
1738 name = generator;
1739 values = {
1740 v = 202207;
1741 cxxmin = 23;
1742 extra_cond = "__glibcxx_coroutine && __cpp_sized_deallocation";
1743 };
1744 };
1745
1746 ftms = {
1747 name = ios_noreplace;
1748 values = {
1749 v = 202207;
1750 cxxmin = 23;
1751 hosted = yes;
1752 };
1753 };
1754
1755 ftms = {
1756 name = move_only_function;
1757 values = {
1758 v = 202110;
1759 cxxmin = 23;
1760 hosted = yes;
1761 };
1762 };
1763
1764 ftms = {
1765 name = out_ptr;
1766 values = {
1767 v = 202311;
1768 cxxmin = 23;
1769 };
1770 };
1771
1772 ftms = {
1773 name = print;
1774 values = {
1775 v = 202211;
1776 cxxmin = 23;
1777 hosted = yes;
1778 };
1779 };
1780
1781 ftms = {
1782 name = spanstream;
1783 values = {
1784 v = 202106;
1785 cxxmin = 23;
1786 hosted = yes;
1787 extra_cond = "__glibcxx_span";
1788 };
1789 };
1790
1791 ftms = {
1792 name = stacktrace;
1793 values = {
1794 v = 202011;
1795 cxxmin = 23;
1796 hosted = yes;
1797 extra_cond = "_GLIBCXX_HAVE_STACKTRACE";
1798 };
1799 };
1800
1801 ftms = {
1802 name = string_contains;
1803 values = {
1804 v = 202011;
1805 cxxmin = 23;
1806 hosted = yes;
1807 };
1808 };
1809
1810 ftms = {
1811 name = string_resize_and_overwrite;
1812 values = {
1813 v = 202110;
1814 cxxmin = 23;
1815 hosted = yes;
1816 };
1817 };
1818
1819 ftms = {
1820 name = to_underlying;
1821 values = {
1822 v = 202102;
1823 cxxmin = 23;
1824 };
1825 };
1826
1827 ftms = {
1828 name = tuple_like;
1829 values = {
1830 v = 202311;
1831 cxxmin = 26;
1832 extra_cond = "__cpp_explicit_this_parameter >= 202110L";
1833 };
1834 values = {
1835 v = 202207;
1836 cxxmin = 23;
1837 };
1838 };
1839
1840 ftms = {
1841 name = unreachable;
1842 values = {
1843 v = 202202;
1844 cxxmin = 23;
1845 };
1846 };
1847
1848 ftms = {
1849 name = algorithm_default_value_type;
1850 values = {
1851 v = 202403;
1852 cxxmin = 26;
1853 };
1854 };
1855
1856 ftms = {
1857 name = constexpr_new;
1858 values = {
1859 v = 202406;
1860 cxxmin = 26;
1861 extra_cond = "__cpp_constexpr >= 202406L";
1862 };
1863 };
1864
1865 ftms = {
1866 name = fstream_native_handle;
1867 values = {
1868 v = 202306;
1869 cxxmin = 26;
1870 hosted = yes;
1871 };
1872 };
1873
1874 ftms = {
1875 name = is_virtual_base_of;
1876 values = {
1877 v = 202406;
1878 cxxmin = 26;
1879 extra_cond = "__has_builtin(__builtin_is_virtual_base_of)";
1880 };
1881 };
1882
1883 ftms = {
1884 name = ranges_cache_latest;
1885 values = {
1886 v = 202411;
1887 cxxmin = 26;
1888 };
1889 };
1890
1891 ftms = {
1892 name = ranges_concat;
1893 values = {
1894 v = 202403;
1895 cxxmin = 26;
1896 extra_cond = "__cpp_pack_indexing";
1897 };
1898 };
1899
1900 ftms = {
1901 name = ratio;
1902 values = {
1903 v = 202306;
1904 cxxmin = 26;
1905 };
1906 };
1907
1908 ftms = {
1909 name = reference_wrapper;
1910 values = {
1911 v = 202403;
1912 cxxmin = 26;
1913 };
1914 };
1915
1916 ftms = {
1917 name = saturation_arithmetic;
1918 values = {
1919 v = 202311;
1920 cxxmin = 26;
1921 };
1922 };
1923
1924 ftms = {
1925 name = span_initializer_list;
1926 values = {
1927 v = 202311;
1928 cxxmin = 26;
1929 };
1930 };
1931
1932 ftms = {
1933 name = text_encoding;
1934 values = {
1935 v = 202306;
1936 cxxmin = 26;
1937 hosted = yes;
1938 extra_cond = "_GLIBCXX_USE_NL_LANGINFO_L";
1939 };
1940 };
1941
1942 ftms = {
1943 name = ranges_to_input;
1944 values = {
1945 v = 202502;
1946 cxxmin = 26;
1947 };
1948 };
1949
1950 ftms = {
1951 name = to_string;
1952 values = {
1953 v = 202306;
1954 cxxmin = 26;
1955 hosted = yes;
1956 extra_cond = "__glibcxx_to_chars";
1957 };
1958 };
1959
1960 ftms = {
1961 name = modules;
1962 values = {
1963 v = 202207;
1964 cxxmin = 20;
1965 extra_cond = "__cpp_modules";
1966 };
1967 };
1968
1969 // Standard test specifications.
1970 stds[97] = ">= 199711L";
1971 stds[03] = ">= 199711L";
1972 stds[11] = ">= 201103L";
1973 stds[14] = ">= 201402L";
1974 stds[17] = ">= 201703L";
1975 stds[20] = ">= 202002L";
1976 stds[23] = ">= 202100L"; // Should be 202302L but Clang 16 uses 202101L
1977 stds[26] = "> 202302L"; // TODO: update when finalized
1978
1979 // Local Variables:
1980 // compile-command: "autogen version.def"
1981 // End: