C++ Test Generation
make[1]: Entering directory './C++CHATGPT/annex_a_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o A09_macros A09_macros.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o A06_function_definition A06_function_definition.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o A07_template A07_template.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o A08_exceptions A08_exceptions.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o A03_expressions A03_expressions.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o A02_pointer_and_reference_declarators A02_pointer_and_reference_declarators.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o A04_statements A04_statements.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o A05_class_definition A05_class_definition.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o A01_simple_declaration A01_simple_declaration.cpp make[1]: Leaving directory './C++CHATGPT/annex_a_tests' make[1]: Entering directory './C++CHATGPT/annex_c_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o C03_structured_bindings C03_structured_bindings.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o C01_designated_initializers C01_designated_initializers.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o C07_c_headers C07_c_headers.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o C02_concepts_and_requires C02_concepts_and_requires.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o C08_cstdlib_namespaces C08_cstdlib_namespaces.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o C04_binary_literals_digit_separators C04_binary_literals_digit_separators.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o C06_export_removed_NEGATIVE C06_export_removed_NEGATIVE.cpp C06_export_removed_NEGATIVE.cpp:3:1: warning: keyword ‘export’ is enabled with ‘-fmodules-ts’ 3 | export template <typename T> void f(T) {} | ^~~~~~ g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o C05_lambda_captures_and_auto C05_lambda_captures_and_auto.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o C07_c99_vla_NEGATIVE C07_c99_vla_NEGATIVE.cpp C07_c99_vla_NEGATIVE.cpp: In function ‘int main()’: C07_c99_vla_NEGATIVE.cpp:4:9: warning: ISO C++ forbids variable length array ‘arr’ [-Wvla] 4 | int arr[n]; // should be rejected | ^~~ C07_c99_vla_NEGATIVE.cpp:5:17: warning: ‘*arr[0]’ is used uninitialized [-Wuninitialized] 5 | return arr[0]; | ^ make[1]: Leaving directory './C++CHATGPT/annex_c_tests' make[1]: Entering directory './C++CHATGPT/annex_d_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o D07_redecl_constexpr D07_redecl_constexpr.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o D10_has_denorm D10_has_denorm.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o D09_template_keyword_before_qualified D09_template_keyword_before_qualified.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o D05_ellipsis_params D05_ellipsis_params.cpp D05_ellipsis_params.cpp:3:15: error: expansion pattern ‘int’ contains no parameter packs 3 | int f(int ... args) { return 0; } // deprecated form | ^~~~ Makefile:11: recipe for target 'D05_ellipsis_params' failed make[1]: *** [D05_ellipsis_params] Error 1 make[1]: Leaving directory './C++CHATGPT/annex_d_tests' make[1]: Entering directory './C++CHATGPT/chapter10_modules_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 10_05_use 10_05_use.cpp 10_05_use.cpp:1:1: error: ‘import’ does not name a type 1 | import priv.mod; | ^~~~~~ 10_05_use.cpp:1:1: note: C++20 ‘import’ only available with ‘-fmodules-ts’, which is not yet enabled with ‘-std=c++20’ 10_05_use.cpp: In function ‘int main()’: 10_05_use.cpp:4:12: error: ‘api’ was not declared in this scope 4 | return api() == 42 ? 0 : 1; | ^~~ Makefile:11: recipe for target '10_05_use' failed make[1]: *** [10_05_use] Error 1 make[1]: Leaving directory './C++CHATGPT/chapter10_modules_tests' make[1]: Entering directory './C++CHATGPT/chapter18_concepts_library_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 18_04_move_copy_regular 18_04_move_copy_regular.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 18_05_assignable_swappable 18_05_assignable_swappable.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 18_03_constructible_default_destructible 18_03_constructible_default_destructible.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 18_07_relation_strict_weak_order 18_07_relation_strict_weak_order.cpp 18_07_relation_strict_weak_order.cpp: In function ‘int main()’: 18_07_relation_strict_weak_order.cpp:13:24: error: wrong number of template arguments (2, should be 3) 13 | static_assert(std::strict_weak_order<Cmp, int>); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from 18_07_relation_strict_weak_order.cpp:2: /usr/local/include/c++/13.2.0/concepts:375:13: note: provided for ‘template<class _Rel, class _Tp, class _Up> concept std::strict_weak_order’ 375 | concept strict_weak_order = relation<_Rel, _Tp, _Up>; | ^~~~~~~~~~~~~~~~~ Makefile:11: recipe for target '18_07_relation_strict_weak_order' failed make[1]: *** [18_07_relation_strict_weak_order] Error 1 make[1]: Leaving directory './C++CHATGPT/chapter18_concepts_library_tests' make[1]: Entering directory './C++CHATGPT/chapter25_ranges_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 25_range_adaptor_closure 25_range_adaptor_closure.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 25_views_take_drop 25_views_take_drop.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 25_views_filter_transform 25_views_filter_transform.cpp make[1]: Leaving directory './C++CHATGPT/chapter25_ranges_tests' make[1]: Entering directory './C++CHATGPT/chapter32_concurrency_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 32_condition_variable 32_condition_variable.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 32_semaphore_guarded 32_semaphore_guarded.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 32_threads_mutex 32_threads_mutex.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 32_future_async 32_future_async.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 32_atomic 32_atomic.cpp make[1]: Leaving directory './C++CHATGPT/chapter32_concurrency_tests' make[1]: Entering directory './C++CHATGPT/chapter11_classes_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 11_06_aggregate_vs_nonaggregate 11_06_aggregate_vs_nonaggregate.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 11_04_using_declarations_overrides 11_04_using_declarations_overrides.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 11_05_virtual_inheritance_final_overrider 11_05_virtual_inheritance_final_overrider.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 11_07_delegating_ctor_and_init 11_07_delegating_ctor_and_init.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 11_02_conversion_functions_explicit 11_02_conversion_functions_explicit.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 11_03_defaulted_deleted_members 11_03_defaulted_deleted_members.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 11_01_explicit_vs_implicit_ctor 11_01_explicit_vs_implicit_ctor.cpp make[1]: Leaving directory './C++CHATGPT/chapter11_classes_tests' make[1]: Entering directory './C++CHATGPT/chapter19_diagnostics_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 19_05_system_error 19_05_system_error.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 19_04_errno 19_04_errno.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 19_06_stacktrace_optional 19_06_stacktrace_optional.cpp 19_06_stacktrace_optional.cpp: In function ‘int main()’: 19_06_stacktrace_optional.cpp:5:20: error: ‘std::stacktrace’ has not been declared 5 | auto st = std::stacktrace::current(); | ^~~~~~~~~~ Makefile:11: recipe for target '19_06_stacktrace_optional' failed make[1]: *** [19_06_stacktrace_optional] Error 1 make[1]: Leaving directory './C++CHATGPT/chapter19_diagnostics_tests' make[1]: Entering directory './C++CHATGPT/chapter26_algorithms_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 26_sort_find 26_sort_find.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 26_parallel_algorithms_optional 26_parallel_algorithms_optional.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 26_ranges_algorithms 26_ranges_algorithms.cpp make[1]: Leaving directory './C++CHATGPT/chapter26_algorithms_tests' make[1]: Entering directory './C++CHATGPT/chapter33_execution_control_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 33_include_guarded 33_include_guarded.cpp make[1]: Leaving directory './C++CHATGPT/chapter33_execution_control_tests' make[1]: Entering directory './C++CHATGPT/chapter12_overloading_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 12_10_constructor_overload_match 12_10_constructor_overload_match.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 12_12_best_match_ranking 12_12_best_match_ranking.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 12_02_const_ref_qualifiers 12_02_const_ref_qualifiers.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 12_04_deleted_candidate 12_04_deleted_candidate.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 12_01_basic_function_overload 12_01_basic_function_overload.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 12_09_address_of_overload_set 12_09_address_of_overload_set.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 12_06_user_defined_conversion_competes 12_06_user_defined_conversion_competes.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 12_11_initializer_list_preference 12_11_initializer_list_preference.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 12_03_template_vs_nontemplate 12_03_template_vs_nontemplate.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 12_05_ambiguity_NEGATIVE 12_05_ambiguity_NEGATIVE.cpp 12_05_ambiguity_NEGATIVE.cpp: In function ‘int main()’: 12_05_ambiguity_NEGATIVE.cpp:4:21: error: call of overloaded ‘k(int)’ is ambiguous 4 | int main(){ return k(0); } // both viable, same rank | ~^~~ 12_05_ambiguity_NEGATIVE.cpp:2:5: note: candidate: ‘int k(long int)’ 2 | int k(long){ return 1; } | ^ 12_05_ambiguity_NEGATIVE.cpp:3:5: note: candidate: ‘int k(double)’ 3 | int k(double){ return 2; } | ^ Makefile:11: recipe for target '12_05_ambiguity_NEGATIVE' failed make[1]: *** [12_05_ambiguity_NEGATIVE] Error 1 make[1]: Leaving directory './C++CHATGPT/chapter12_overloading_tests' make[1]: Entering directory './C++CHATGPT/chapter20_memory_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 20_03_smart_ptrs 20_03_smart_ptrs.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 20_05_pmr_vector 20_05_pmr_vector.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 20_02_aligned_storage_compat 20_02_aligned_storage_compat.cpp make[1]: Leaving directory './C++CHATGPT/chapter20_memory_tests' make[1]: Entering directory './C++CHATGPT/chapter27_strings_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 27_u8_u16_u32 27_u8_u16_u32.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 27_char_traits 27_char_traits.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 27_basic_string 27_basic_string.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 27_string_view 27_string_view.cpp make[1]: Leaving directory './C++CHATGPT/chapter27_strings_tests' make[1]: Entering directory './C++CHATGPT/chapter9_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 09_anonymous_union 09_anonymous_union.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 09_class_member_names 09_class_member_names.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 09_access_control 09_access_control.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 09_static_members 09_static_members.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 09_special_members 09_special_members.cpp 09_special_members.cpp: In function ‘int main()’: 09_special_members.cpp:8:12: error: no matching function for call to ‘S::S(<brace-enclosed initializer list>)’ 8 | S s1{42}; | ^ 09_special_members.cpp:4:5: note: candidate: ‘constexpr S::S()’ 4 | S() = default; | ^ 09_special_members.cpp:4:5: note: candidate expects 0 arguments, 1 provided Makefile:11: recipe for target '09_special_members' failed make[1]: *** [09_special_members] Error 1 make[1]: Leaving directory './C++CHATGPT/chapter9_tests' make[1]: Entering directory './C++CHATGPT/chapter05_lexical_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 05_04_comments_nested_NEGATIVE 05_04_comments_nested_NEGATIVE.cpp 05_04_comments_nested_NEGATIVE.cpp:3:14: warning: "/*" within comment [-Wcomment] 3 | /* outer /* inner */ still open? */ | 05_04_comments_nested_NEGATIVE.cpp: In function ‘int main()’: 05_04_comments_nested_NEGATIVE.cpp:3:26: error: ‘still’ was not declared in this scope 3 | /* outer /* inner */ still open? */ | ^~~~~ Makefile:11: recipe for target '05_04_comments_nested_NEGATIVE' failed make[1]: *** [05_04_comments_nested_NEGATIVE] Error 1 make[1]: Leaving directory './C++CHATGPT/chapter05_lexical_tests' make[1]: Entering directory './C++CHATGPT/chapter13_templates_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 13_08_dependent_name_missing_template_NEGATIVE 13_08_dependent_name_missing_template_NEGATIVE.cpp 13_08_dependent_name_missing_template_NEGATIVE.cpp: In function ‘auto call_conv_bad(C&)’: 13_08_dependent_name_missing_template_NEGATIVE.cpp:10:14: warning: expected ‘template’ keyword before dependent template name [-Wmissing-template-keyword] 10 | return c.conv<int>(42); // should be 'c.template conv<int>(42)' | ^~~~ | template 13_08_dependent_name_missing_template_NEGATIVE.cpp:10:19: error: expected primary-expression before ‘int’ 10 | return c.conv<int>(42); // should be 'c.template conv<int>(42)' | ^~~ 13_08_dependent_name_missing_template_NEGATIVE.cpp:10:19: error: expected ‘;’ before ‘int’ 10 | return c.conv<int>(42); // should be 'c.template conv<int>(42)' | ^~~ | ; 13_08_dependent_name_missing_template_NEGATIVE.cpp:10:22: error: expected unqualified-id before ‘>’ token 10 | return c.conv<int>(42); // should be 'c.template conv<int>(42)' | ^ Makefile:11: recipe for target '13_08_dependent_name_missing_template_NEGATIVE' failed make[1]: *** [13_08_dependent_name_missing_template_NEGATIVE] Error 1 make[1]: Leaving directory './C++CHATGPT/chapter13_templates_tests' make[1]: Entering directory './C++CHATGPT/chapter21_metaprogramming_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 21_05_ratio 21_05_ratio.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 21_02_integer_sequence 21_02_integer_sequence.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 21_03_type_traits 21_03_type_traits.cpp make[1]: Leaving directory './C++CHATGPT/chapter21_metaprogramming_tests' make[1]: Entering directory './C++CHATGPT/chapter28_text_processing_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 28_regex 28_regex.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 28_format 28_format.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 28_charconv 28_charconv.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 28_locale_basic 28_locale_basic.cpp make[1]: Leaving directory './C++CHATGPT/chapter28_text_processing_tests' make[1]: Entering directory './C++CHATGPT/chapter06_basics_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 06_02_scope_and_hiding 06_02_scope_and_hiding.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 06_10_odr_use_discarded_NEGATIVE 06_10_odr_use_discarded_NEGATIVE.cpp 06_10_odr_use_discarded_NEGATIVE.cpp:3:5: error: redefinition of ‘int h()’ 3 | int h(){ return 2; } // duplicate definition | ^ 06_10_odr_use_discarded_NEGATIVE.cpp:2:5: note: ‘int h()’ previously defined here 2 | int h(){ return 1; } | ^ Makefile:11: recipe for target '06_10_odr_use_discarded_NEGATIVE' failed make[1]: *** [06_10_odr_use_discarded_NEGATIVE] Error 1 make[1]: Leaving directory './C++CHATGPT/chapter06_basics_tests' make[1]: Entering directory './C++CHATGPT/chapter14_exceptions_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 14_04_noexcept_on_lambda 14_04_noexcept_on_lambda.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 14_07_std_terminate 14_07_std_terminate.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 14_02_catch_all_and_slicing 14_02_catch_all_and_slicing.cpp 14_02_catch_all_and_slicing.cpp: In function ‘int main()’: 14_02_catch_all_and_slicing.cpp:10:19: warning: catching polymorphic type ‘struct Base’ by value [-Wcatch-value=] 10 | } catch (Base b) { // by value -> slicing (most implementations warn) | ^ g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 14_03_stack_unwinding_dtor 14_03_stack_unwinding_dtor.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 14_08_catch_by_value 14_08_catch_by_value.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 14_05_dynamic_exception_spec_NEGATIVE 14_05_dynamic_exception_spec_NEGATIVE.cpp 14_05_dynamic_exception_spec_NEGATIVE.cpp:2:12: error: ISO C++17 does not allow dynamic exception specifications 2 | void bad() throw(int); // ill-formed in modern C++ | ^~~~~ Makefile:11: recipe for target '14_05_dynamic_exception_spec_NEGATIVE' failed make[1]: *** [14_05_dynamic_exception_spec_NEGATIVE] Error 1 make[1]: Leaving directory './C++CHATGPT/chapter14_exceptions_tests' make[1]: Entering directory './C++CHATGPT/chapter22_utilities_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 22_10_function_invoke 22_10_function_invoke.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 22_08_expected_guarded 22_08_expected_guarded.cpp 22_08_expected_guarded.cpp: In function ‘int main()’: 22_08_expected_guarded.cpp:5:10: error: ‘expected’ is not a member of ‘std’ 5 | std::expected<int, const char*> e = 42; | ^~~~~~~~ 22_08_expected_guarded.cpp:5:10: note: ‘std::expected’ is only available from C++23 onwards 22_08_expected_guarded.cpp:5:19: error: expected primary-expression before ‘int’ 5 | std::expected<int, const char*> e = 42; | ^~~ 22_08_expected_guarded.cpp:6:12: error: ‘e’ was not declared in this scope 6 | return e ? 0 : 1; | ^ Makefile:11: recipe for target '22_08_expected_guarded' failed make[1]: *** [22_08_expected_guarded] Error 1 make[1]: Leaving directory './C++CHATGPT/chapter22_utilities_tests' make[1]: Entering directory './C++CHATGPT/chapter29_numerics_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 29_random 29_random.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 29_valarray 29_valarray.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 29_complex 29_complex.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 29_numbers 29_numbers.cpp make[1]: Leaving directory './C++CHATGPT/chapter29_numerics_tests' make[1]: Entering directory './C++CHATGPT/chapter07_expressions_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 07_07_pointer_to_member 07_07_pointer_to_member.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 07_06_constexpr_eval 07_06_constexpr_eval.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 07_05_conversions_static_cast 07_05_conversions_static_cast.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 07_02_logical_and_bitwise 07_02_logical_and_bitwise.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 07_04_increment_assignment 07_04_increment_assignment.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 07_01_arithmetic_and_relational 07_01_arithmetic_and_relational.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 07_08_lambda_expressions 07_08_lambda_expressions.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 07_09_implicit_conversion_sequences 07_09_implicit_conversion_sequences.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 07_03_conditional_operator 07_03_conditional_operator.cpp make[1]: Leaving directory './C++CHATGPT/chapter07_expressions_tests' make[1]: Entering directory './C++CHATGPT/chapter15_preprocessing_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 15_04_resource_inclusion_embed 15_04_resource_inclusion_embed.cpp 15_04_resource_inclusion_embed.cpp:6:2: error: invalid preprocessing directive #embed 6 | #embed "data.txt" | ^~~~~ 15_04_resource_inclusion_embed.cpp:5:25: error: zero-size array ‘blob’ 5 | constexpr unsigned char blob[] = { | ^~~~ Makefile:11: recipe for target '15_04_resource_inclusion_embed' failed make[1]: *** [15_04_resource_inclusion_embed] Error 1 make[1]: Leaving directory './C++CHATGPT/chapter15_preprocessing_tests' make[1]: Entering directory './C++CHATGPT/chapter23_containers_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 23_map 23_map.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 23_priority_queue 23_priority_queue.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 23_unordered_map 23_unordered_map.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 23_vector 23_vector.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 23_list 23_list.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 23_array 23_array.cpp make[1]: Leaving directory './C++CHATGPT/chapter23_containers_tests' make[1]: Entering directory './C++CHATGPT/chapter30_time_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 30_hh_mm_ss 30_hh_mm_ss.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 30_duration_timepoint 30_duration_timepoint.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 30_format_time 30_format_time.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 30_calendar 30_calendar.cpp make[1]: Leaving directory './C++CHATGPT/chapter30_time_tests' make[1]: Entering directory './C++CHATGPT/chapter08_statements_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 08_03_for_while_do 08_03_for_while_do.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 08_02_if_else_switch 08_02_if_else_switch.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 08_04_range_for 08_04_range_for.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 08_01_compound_and_decl 08_01_compound_and_decl.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 08_05_break_continue_goto 08_05_break_continue_goto.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 08_07_switch_duplicate_case_NEGATIVE 08_07_switch_duplicate_case_NEGATIVE.cpp 08_07_switch_duplicate_case_NEGATIVE.cpp: In function ‘int main()’: 08_07_switch_duplicate_case_NEGATIVE.cpp:6:9: error: duplicate case value 6 | case 0: break; | ^~~~ 08_07_switch_duplicate_case_NEGATIVE.cpp:5:9: note: previously used here 5 | case 0: break; | ^~~~ Makefile:11: recipe for target '08_07_switch_duplicate_case_NEGATIVE' failed make[1]: *** [08_07_switch_duplicate_case_NEGATIVE] Error 1 make[1]: Leaving directory './C++CHATGPT/chapter08_statements_tests' make[1]: Entering directory './C++CHATGPT/chapter17_lang_support_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 17_08_source_location 17_08_source_location.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 17_02_common_definitions 17_02_common_definitions.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 17_15_c_headers_sanity 17_15_c_headers_sanity.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 17_14_at_quick_exit 17_14_at_quick_exit.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 17_06_aligned_new_delete 17_06_aligned_new_delete.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 17_13_coroutines_generator 17_13_coroutines_generator.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 17_09_exception_ptr 17_09_exception_ptr.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 17_12_compare_three_way 17_12_compare_three_way.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 17_07_typeid_dynamic_cast 17_07_typeid_dynamic_cast.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 17_04_arithmetic_and_traits 17_04_arithmetic_and_traits.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 17_06_dynamic_memory 17_06_dynamic_memory.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 17_11_initializer_list 17_11_initializer_list.cpp make[1]: Leaving directory './C++CHATGPT/chapter17_lang_support_tests' make[1]: Entering directory './C++CHATGPT/chapter24_iterators_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 24_iterator_traits 24_iterator_traits.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 24_iterator_adaptors 24_iterator_adaptors.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 24_stream_iterators 24_stream_iterators.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 24_range_access 24_range_access.cpp make[1]: Leaving directory './C++CHATGPT/chapter24_iterators_tests' make[1]: Entering directory './C++CHATGPT/chapter31_io_tests' g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 31_stringstreams 31_stringstreams.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 31_filesystem 31_filesystem.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 31_file_streams 31_file_streams.cpp g++ -std=c++20 -O2 -Wall -Wextra -pedantic -lm -lpthread -lstdc++ -o 31_iostreams 31_iostreams.cpp make[1]: Leaving directory './C++CHATGPT/chapter31_io_tests'