[gcc r15-9501] c++: constexpr, trivial, and non-alias target [PR111075]

2025-04-15 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:628aecb050bbbc4bb0bd4468c474623e20d64e21 commit r15-9501-g628aecb050bbbc4bb0bd4468c474623e20d64e21 Author: Jason Merrill Date: Tue Apr 15 11:23:57 2025 -0400 c++: constexpr, trivial, and non-alias target [PR111075] On Darwin and other targets with !can_alias_

[gcc r15-9369] c++: nested lambda capture pack [PR119345]

2025-04-10 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:5957b9919c9ecda6e4ca198086f8bb9ea215232c commit r15-9369-g5957b9919c9ecda6e4ca198086f8bb9ea215232c Author: Jason Merrill Date: Thu Apr 10 14:34:35 2025 -0400 c++: nested lambda capture pack [PR119345] tsubst_stmt already registers a local capture proxy as a

[gcc r14-11691] c++: shortcut constexpr vector ctor [PR113835]

2025-04-28 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:8dce1aa0579ab86a626e24c0af29455f30305595 commit r14-11691-g8dce1aa0579ab86a626e24c0af29455f30305595 Author: Jason Merrill Date: Sat Apr 12 11:35:18 2025 -0400 c++: shortcut constexpr vector ctor [PR113835] Since std::vector became usable in constant evaluatio

[gcc r14-11692] c++: format attribute redeclaration [PR116954]

2025-04-28 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:1e91580d64932dffa87831ef403f5fb7a41b6f12 commit r14-11692-g1e91580d64932dffa87831ef403f5fb7a41b6f12 Author: Jason Merrill Date: Wed Apr 16 11:15:14 2025 -0400 c++: format attribute redeclaration [PR116954] Here when merging the two decls, remove_contract_attr

[gcc r16-335] c++: add missing -fabi-version docs

2025-05-01 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:87c4460024dadef0aa1c767be146ad3831857ebe commit r16-335-g87c4460024dadef0aa1c767be146ad3831857ebe Author: Jason Merrill Date: Thu May 1 16:04:29 2025 -0400 c++: add missing -fabi-version docs Looks like I've forgotten to update the docs for -fabi-version for

[gcc r16-355] c++: C++17/20 class layout divergence [PR120012]

2025-05-02 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:e6e3b0772ed40cc65a544bbe744ece62d8b9713e commit r16-355-ge6e3b0772ed40cc65a544bbe744ece62d8b9713e Author: Jason Merrill Date: Wed Apr 30 10:18:46 2025 -0400 c++: C++17/20 class layout divergence [PR120012] C++20 made a class with only explicitly defaulted con

[gcc r16-354] i386: -Wabi false positive with indirect call [PR60336]

2025-05-02 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:4af5de21363cfdd2be227c05dfdee7e053337f6a commit r16-354-g4af5de21363cfdd2be227c05dfdee7e053337f6a Author: Jason Merrill Date: Thu May 1 11:40:17 2025 -0400 i386: -Wabi false positive with indirect call [PR60336] This warning relies on the TRANSLATION_UNIT_WAR

[gcc r16-368] c++: add fixed testcase [PR85944]

2025-05-03 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:a63d871eac0e57002b4ab4e1522f3f3851183b5e commit r16-368-ga63d871eac0e57002b4ab4e1522f3f3851183b5e Author: Jason Merrill Date: Fri May 2 10:47:01 2025 -0400 c++: add fixed testcase [PR85944] This testcase was incidentally fixed by r16-325 for PR119162.

[gcc r16-369] c++: let plain -Wabi warn about future changes

2025-05-03 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:11e62bc6d9f8109a98facd1f90d4602869eb12e7 commit r16-369-g11e62bc6d9f8109a98facd1f90d4602869eb12e7 Author: Jason Merrill Date: Thu May 1 09:42:40 2025 -0400 c++: let plain -Wabi warn about future changes c_common_post_options limits flag_abi_version and flag_a

[gcc r16-356] c++: fix some testcases

2025-05-02 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:b7e77644d1b27810c5db1944644b6c5eca74cf93 commit r16-356-gb7e77644d1b27810c5db1944644b6c5eca74cf93 Author: Jason Merrill Date: Fri May 2 09:33:39 2025 -0400 c++: fix some testcases After r16-332 these tests started failing. constexpr-89285.C should have a

[gcc r16-357] c++: CTAD and constexpr ctor [PR115207]

2025-05-02 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:2d7a0d38e2f8e281ab2269cfe6c048410fa3c886 commit r16-357-g2d7a0d38e2f8e281ab2269cfe6c048410fa3c886 Author: Jason Merrill Date: Fri May 2 08:35:38 2025 -0400 c++: CTAD and constexpr ctor [PR115207] Here we failed to constant-evaluate the A constructor because D

[gcc r16-34] c++: minor EXPR_STMT cleanup

2025-04-19 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:6beb0a14aacd84ec49646237fc0f69c6765f956e commit r16-34-g6beb0a14aacd84ec49646237fc0f69c6765f956e Author: Jason Merrill Date: Mon Feb 3 10:35:33 2025 -0500 c++: minor EXPR_STMT cleanup I think it was around PR118574 that I noticed a few cases where we were

[gcc r16-56] c++: new size folding [PR118775]

2025-04-21 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:e7523a40cb1787d52a638cf8a4f9eeb5212f770f commit r16-56-ge7523a40cb1787d52a638cf8a4f9eeb5212f770f Author: Jason Merrill Date: Sun Apr 20 12:31:35 2025 -0400 c++: new size folding [PR118775] r15-7893 added a workaround for a case where we weren't registering (l

[gcc r16-55] c++: static constexpr strictness [PR99456]

2025-04-21 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:e6ae0de72ef696c4016cc66c53a4aa49a1e900a6 commit r16-55-ge6ae0de72ef696c4016cc66c53a4aa49a1e900a6 Author: Jason Merrill Date: Wed Mar 5 16:42:32 2025 -0500 c++: static constexpr strictness [PR99456] r11-7740 limited constexpr rejection of conversion from point

[gcc r16-57] c++: reorder constexpr checks

2025-04-21 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:9ac98b5742ebce41d7da9fda10852a0bc958f1cb commit r16-57-g9ac98b5742ebce41d7da9fda10852a0bc958f1cb Author: Jason Merrill Date: Tue Mar 11 11:16:26 2025 -0400 c++: reorder constexpr checks My proposed change to stop setting TREE_STATIC on constexpr heap pseu

[gcc r15-7591] c++: extended temps and statement-exprs [PR118763]

2025-02-17 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:720c8f685210af9fc9c31810e224751102f1481e commit r15-7591-g720c8f685210af9fc9c31810e224751102f1481e Author: Jason Merrill Date: Sun Feb 16 11:00:36 2025 +0100 c++: extended temps and statement-exprs [PR118763] My last patch for 118856 broke the test for 118763

[gcc r14-11347] c++: init-list opt and lvalue initializers [PR118673]

2025-02-27 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:b4f66a79e0c9b65d78aed6c982bdcff48ed098d5 commit r14-11347-gb4f66a79e0c9b65d78aed6c982bdcff48ed098d5 Author: Jason Merrill Date: Mon Jan 27 18:30:18 2025 -0500 c++: init-list opt and lvalue initializers [PR118673] When fn returns {extension}, the ArrayRef in t

[gcc r14-11349] c++: disable initializer_list transformation

2025-02-27 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:a72e782528749bf553158039783ce79fa760e3a4 commit r14-11349-ga72e782528749bf553158039783ce79fa760e3a4 Author: Jason Merrill Date: Tue Jan 28 17:39:41 2025 -0500 c++: disable initializer_list transformation PRs 118673 and 118285 are wrong-code bugs with the tran

[gcc r14-11351] testsuite: limit concepts-pr67774.C to C++20

2025-02-27 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:59b09468243d07f6ac7ab38cd0b7fedd00a47385 commit r14-11351-g59b09468243d07f6ac7ab38cd0b7fedd00a47385 Author: Jason Merrill Date: Sun Feb 16 00:17:30 2025 +0100 testsuite: limit concepts-pr67774.C to C++20 This test breaks with -std=c++23 -fconcepts-ts, but wor

[gcc r14-11348] c++: Update const_decl handling after r15-7259 [PR118673].

2025-02-27 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:19bf2732ae4ad0c37c2493e82cc500724de746a8 commit r14-11348-g19bf2732ae4ad0c37c2493e82cc500724de746a8 Author: Iain Sandoe Date: Thu Jan 30 08:19:21 2025 + c++: Update const_decl handling after r15-7259 [PR118673]. Objective-C++ uses CONST_DECLs to hold cons

[gcc r14-11346] c++: constexpr VEC_INIT_EXPR [PR118285]

2025-02-27 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:3003d404b436c2dbd5a3a282c25b797d887237d9 commit r14-11346-g3003d404b436c2dbd5a3a282c25b797d887237d9 Author: Jason Merrill Date: Tue Jan 28 13:11:50 2025 -0500 c++: constexpr VEC_INIT_EXPR [PR118285] cxx_eval_vec_init_1 was doing the wrong thing for an array o

[gcc r15-7906] c++/modules: purview of explicit instantiations [PR114630]

2025-03-08 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:b360d4aafc1356386313c7392f7444b3fc356681 commit r15-7906-gb360d4aafc1356386313c7392f7444b3fc356681 Author: Jason Merrill Date: Thu Mar 6 12:39:36 2025 -0500 c++/modules: purview of explicit instantiations [PR114630] When calling instantiate_pending_templates

[gcc r15-7819] c++: C++23 range-for temps and ?: [PR119073]

2025-03-04 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:f2a7f845698bfb7aaded9ffacd7046ae25a8b1fc commit r15-7819-gf2a7f845698bfb7aaded9ffacd7046ae25a8b1fc Author: Jason Merrill Date: Tue Mar 4 16:36:47 2025 -0500 c++: C++23 range-for temps and ?: [PR119073] Here gimplification got confused because extend_temps_r m

[gcc r14-11350] c++: NRVO, constexpr, lambda [PR118053]

2025-02-27 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:7e7a1b612654479e821214f7ef7658de8a132714 commit r14-11350-g7e7a1b612654479e821214f7ef7658de8a132714 Author: Jason Merrill Date: Sat Feb 15 10:48:17 2025 +0100 c++: NRVO, constexpr, lambda [PR118053] Here during constant evaluation we encounter a VAR_DECL with

[gcc r15-8001] contrib: relpath.sh /lib /include [PR119081]

2025-03-12 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:90f5dabddbdc47bfbabaabb5b560d3d5cc2acf9c commit r15-8001-g90f5dabddbdc47bfbabaabb5b560d3d5cc2acf9c Author: Jason Merrill Date: Tue Mar 11 17:43:35 2025 -0400 contrib: relpath.sh /lib /include [PR119081] Previously, if the common ancestor of the two paths is /

[gcc r15-7837] c++: coroutines and return in registers [PR118874]

2025-03-05 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:7e576d5b64ae92432fc2749b8f66105cee8db356 commit r15-7837-g7e576d5b64ae92432fc2749b8f66105cee8db356 Author: Jason Merrill Date: Wed Mar 5 08:45:34 2025 -0500 c++: coroutines and return in registers [PR118874] Because coroutines insert a call to the resumer bet

[gcc r15-7973] c++: constexpr caching deleted pointer [PR119162]

2025-03-11 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:17ef5cad94d3f8f5fb1d8b749adf04c9d775ab9c commit r15-7973-g17ef5cad94d3f8f5fb1d8b749adf04c9d775ab9c Author: Jason Merrill Date: Mon Mar 10 14:10:52 2025 -0400 c++: constexpr caching deleted pointer [PR119162] In this testcase, we pass the checks for mismatched

[gcc r15-7510] c++: omp declare variant tweak

2025-02-13 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:32d3e63ebb2aac4208a522fcd3477932d72eacfc commit r15-7510-g32d3e63ebb2aac4208a522fcd3477932d72eacfc Author: Jason Merrill Date: Wed Feb 12 18:47:17 2025 +0100 c++: omp declare variant tweak In r15-6707 I changed this function to use build_stub_object to more s

[gcc r15-7508] c++: -frange-for-ext-temps and reused temps [PR118856]

2025-02-13 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:6f7935b3fd60968cff1b3252edf40022f25705aa commit r15-7508-g6f7935b3fd60968cff1b3252edf40022f25705aa Author: Jason Merrill Date: Thu Feb 13 11:54:48 2025 +0100 c++: -frange-for-ext-temps and reused temps [PR118856] Some things in the front-end use a TARGET_EXPR

[gcc r15-7532] c++: extended temp cleanups [PR118856]

2025-02-14 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:e96e1bb69c7b46db18e747ee379a62681bc8c82d commit r15-7532-ge96e1bb69c7b46db18e747ee379a62681bc8c82d Author: Jason Merrill Date: Fri Feb 14 10:53:01 2025 +0100 c++: extended temp cleanups [PR118856] A later testcase in PR118856 highlights a preexisting problem

[gcc r15-7531] c++: remove unicode from comment

2025-02-14 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:823de62f5f66f052193aa74520dec94fb3488958 commit r15-7531-g823de62f5f66f052193aa74520dec94fb3488958 Author: Jason Merrill Date: Fri Feb 14 10:52:21 2025 +0100 c++: remove unicode from comment We had a stray U+2019 right single quotation mark instead of U+0027

[gcc r15-7558] c++: NRVO, constexpr, lambda [PR118053]

2025-02-15 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:de66529f2e7bb24fb2b61b82e6a953f3f6c12902 commit r15-7558-gde66529f2e7bb24fb2b61b82e6a953f3f6c12902 Author: Jason Merrill Date: Sat Feb 15 10:48:17 2025 +0100 c++: NRVO, constexpr, lambda [PR118053] Here during constant evaluation we encounter a VAR_DECL with

[gcc r15-7559] testsuite: tweak constexpr-lamda1.C [PR118053]

2025-02-15 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:741073460b9a850ca85b01509e08bf72900b6c8a commit r15-7559-g741073460b9a850ca85b01509e08bf72900b6c8a Author: Jason Merrill Date: Sat Feb 15 13:28:37 2025 +0100 testsuite: tweak constexpr-lamda1.C [PR118053] I forgot to add the -O necessary to reproduce the bug

[gcc r15-7701] doc: update C++98 bootstrap note

2025-02-25 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:dc9db8007519a3240ebf66262be8baba87a98e20 commit r15-7701-gdc9db8007519a3240ebf66262be8baba87a98e20 Author: Jason Merrill Date: Tue Feb 25 15:13:34 2025 -0500 doc: update C++98 bootstrap note r10-11132 uses C++11 default member initializers, which breaks boots

[gcc r15-9066] c++: lambda in function template signature [PR119401]

2025-03-31 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:1949beb7dbe66687542f4a19d316914dd73fe84d commit r15-9066-g1949beb7dbe66687542f4a19d316914dd73fe84d Author: Jason Merrill Date: Sat Mar 29 14:00:55 2025 -0400 c++: lambda in function template signature [PR119401] Here we instantiate the lambda three times in p

[gcc r15-8900] c++: lambda, default argument, unevaluated context

2025-03-25 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:525d4a10302113b3cce9b4e5420767f0a2f5624e commit r15-8900-g525d4a10302113b3cce9b4e5420767f0a2f5624e Author: yxj-github-437 <2457369...@qq.com> Date: Tue Mar 25 23:43:10 2025 +0800 c++: lambda, default argument, unevaluated context This patch would like to avoid

[gcc r15-9018] libcpp: Fix incorrect line numbers in large files [PR108900]

2025-03-28 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:d9b56c65a2697e0d7a6c0f15f1977803dc94579b commit r15-9018-gd9b56c65a2697e0d7a6c0f15f1977803dc94579b Author: Jeremy Bettis Date: Fri Mar 28 00:54:27 2025 -0700 libcpp: Fix incorrect line numbers in large files [PR108900] This patch addresses an issue in the C p

[gcc r15-9029] c++/modules: unexported friend template

2025-03-29 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:eb26b667518c951d06f3c51118a1d41dcdda8b99 commit r15-9029-geb26b667518c951d06f3c51118a1d41dcdda8b99 Author: Jason Merrill Date: Sat Mar 29 08:56:09 2025 -0400 c++/modules: unexported friend template Here we were failing to match the injected friend declaration

[gcc r15-9026] c++: optimize push_to_top_level [PR64500]

2025-03-29 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:5ac4be28822a4e6f506a69096f92d4675a7d5a72 commit r15-9026-g5ac4be28822a4e6f506a69096f92d4675a7d5a72 Author: Jason Merrill Date: Mon Mar 24 15:28:04 2025 -0400 c++: optimize push_to_top_level [PR64500] Profiling showed that the loop to save away IDENTIFIER_BIND

[gcc r15-8967] c++/modules: Fix tsubst of global module friend classes [PR118920]

2025-03-27 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:3e0768d2ffde3f20c5baa92d33869f0c196245c4 commit r15-8967-g3e0768d2ffde3f20c5baa92d33869f0c196245c4 Author: Nathaniel Shead Date: Thu Mar 27 00:23:24 2025 +1100 c++/modules: Fix tsubst of global module friend classes [PR118920] When doing tsubst_friend_class,

[gcc r15-9186] c++: operator!= rewriting and arg-dep lookup

2025-04-03 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:bd5597156ca0c7d6fb50c6fe92a7abe6717cb2b5 commit r15-9186-gbd5597156ca0c7d6fb50c6fe92a7abe6717cb2b5 Author: Jason Merrill Date: Tue Apr 1 13:04:05 2025 -0400 c++: operator!= rewriting and arg-dep lookup When considering an op== as a rewrite target, we need to

[gcc r15-9187] c++/modules: inline loaded at eof

2025-04-04 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:acfe19f03bccd1f3183fd5d70d7a3c8c85e62fac commit r15-9187-gacfe19f03bccd1f3183fd5d70d7a3c8c85e62fac Author: Jason Merrill Date: Tue Apr 1 19:22:18 2025 -0400 c++/modules: inline loaded at eof std/format/string.cc and a few other libstdc++ tests were failing wi

[gcc r14-11530] c++: lambda in requires outside template [PR99546]

2025-04-04 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:ecc2725d61f1b268b51a604543b6717185bebd34 commit r14-11530-gecc2725d61f1b268b51a604543b6717185bebd34 Author: Jason Merrill Date: Wed Jan 29 05:15:00 2025 -0500 c++: lambda in requires outside template [PR99546] Since r10-7441 we set processing_template_decl in

[gcc r15-8869] c++: pack indexing and if consteval

2025-04-04 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:94d1dacf350c3c463aead7e4d5c172f138045eb1 commit r15-8869-g94d1dacf350c3c463aead7e4d5c172f138045eb1 Author: Jason Merrill Date: Sat Mar 22 10:52:14 2025 -0400 c++: pack indexing and if consteval The pack index is manifestly constant-evaluated, and the call to

[gcc r15-9635] c++: C++17/20 class layout divergence [PR120012]

2025-05-07 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:809c5d7486f91d59e798e0c70ac887f837039ece commit r15-9635-g809c5d7486f91d59e798e0c70ac887f837039ece Author: Jason Merrill Date: Wed Apr 30 10:18:46 2025 -0400 c++: C++17/20 class layout divergence [PR120012] C++20 made a class with only explicitly defaulted co

[gcc r15-9634] c++: let plain -Wabi warn about future changes

2025-05-07 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:fa55a6c92b50543352fef16e962511984998f123 commit r15-9634-gfa55a6c92b50543352fef16e962511984998f123 Author: Jason Merrill Date: Thu May 1 09:42:40 2025 -0400 c++: let plain -Wabi warn about future changes c_common_post_options limits flag_abi_version and flag_

[gcc r16-506] c++: recursive instantiation diagnostic [PR120204]

2025-05-09 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:b5f61a09c1ab3a45398333b50963e533a980b62d commit r16-506-gb5f61a09c1ab3a45398333b50963e533a980b62d Author: Jason Merrill Date: Fri May 9 18:08:43 2025 -0400 c++: recursive instantiation diagnostic [PR120204] Here tsubst_baselink was returning error_mark_node s

[gcc r16-570] c+: -Wabi false positive [PR120012]

2025-05-12 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:b4b4dfbd22e06877052bd4cc4b191d9d138155cf commit r16-570-gb4b4dfbd22e06877052bd4cc4b191d9d138155cf Author: Jason Merrill Date: Mon May 12 11:53:03 2025 -0400 c+: -Wabi false positive [PR120012] The warning compares the position of a field depending on whether

[gcc r15-9664] c+: -Wabi false positive [PR120012]

2025-05-12 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:c9e3181516f1c0786f81b9c813581bf986a6300a commit r15-9664-gc9e3181516f1c0786f81b9c813581bf986a6300a Author: Jason Merrill Date: Mon May 12 11:53:03 2025 -0400 c+: -Wabi false positive [PR120012] The warning compares the position of a field depending on whether

[gcc r16-504] c++: visibility of instantiated template friends

2025-05-09 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:3c7c2a6b86da641f7729dba89b25fc1b8b74d96f commit r16-504-g3c7c2a6b86da641f7729dba89b25fc1b8b74d96f Author: Jason Merrill Date: Fri Nov 22 16:05:51 2024 +0100 c++: visibility of instantiated template friends In 20_util/variant/visit_member.cc, instantiation of

[gcc r16-503] c++: CWG2369 workaround and ... [PR120185]

2025-05-09 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:21842fe301caa5dbc69a69033cdc17bb29b8c399 commit r16-503-g21842fe301caa5dbc69a69033cdc17bb29b8c399 Author: Jason Merrill Date: Fri May 9 11:05:13 2025 -0400 c++: CWG2369 workaround and ... [PR120185] My r16-479 adjustment to the PR99599 workaround broke on a c

[gcc r16-479] c++: adjust PR99599/CWG2369 workaround

2025-05-08 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:abab79397ef97acf7c689c43e27d58d8d7d5c599 commit r16-479-gabab79397ef97acf7c689c43e27d58d8d7d5c599 Author: Jason Merrill Date: Sat May 3 09:30:01 2025 -0400 c++: adjust PR99599/CWG2369 workaround This tweak to CWG2369 has gotten more discussion lately in CWG,

[gcc r16-606] c++: Allow -Wvirtual-move-assign to be more easily ignored

2025-05-13 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:629a4ec1073b7e46c6e8db0e8f2d1ab562ed7f49 commit r16-606-g629a4ec1073b7e46c6e8db0e8f2d1ab562ed7f49 Author: Owen Avery Date: Tue May 13 17:18:28 2025 -0400 c++: Allow -Wvirtual-move-assign to be more easily ignored This patch makes it easier to selectively disa

[gcc r16-687] c++: one more coro test tweak

2025-05-16 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:e8404a95e3e5c9e297dfeb8175f9ebd52afe4410 commit r16-687-ge8404a95e3e5c9e297dfeb8175f9ebd52afe4410 Author: Jason Merrill Date: Fri May 16 08:22:08 2025 -0400 c++: one more coro test tweak After my r16-670, running the testsuite with explicit --stds didn't run

[gcc r16-870] c++: dump_template_bindings tweak

2025-05-25 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:9b8caae8d189c5bd7de502844b17341a7a6dddc5 commit r16-870-g9b8caae8d189c5bd7de502844b17341a7a6dddc5 Author: Jason Merrill Date: Thu May 22 17:11:50 2025 -0400 c++: dump_template_bindings tweak in r12-1100 we stopped printing template bindings like T = T. The c

[gcc r16-880] c++: add -fdump-lang-tinst

2025-05-26 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:f59ff19bc3d37f4dd159db541ed4f07efb10fcc8 commit r16-880-gf59ff19bc3d37f4dd159db541ed4f07efb10fcc8 Author: Jason Merrill Date: Fri Apr 18 09:50:04 2025 -0400 c++: add -fdump-lang-tinst This patch adds a dump with a trace of template instantiations, indented

[gcc r16-879] c++: add cxx_dump_pretty_printer

2025-05-26 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:d424245c7abb2871b977ddc5c1e73b827a78ad07 commit r16-879-gd424245c7abb2871b977ddc5c1e73b827a78ad07 Author: Jason Merrill Date: Thu Apr 17 16:29:49 2025 -0400 c++: add cxx_dump_pretty_printer A class to simplify implementation of -fdump-lang-foo with support fo

[gcc r13-9687] c++: format attribute redeclaration [PR116954]

2025-05-26 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:bde3ca83ffe99088718198ea643bed7c4b22bbf1 commit r13-9687-gbde3ca83ffe99088718198ea643bed7c4b22bbf1 Author: Jason Merrill Date: Wed Apr 16 11:15:14 2025 -0400 c++: format attribute redeclaration [PR116954] Here when merging the two decls, remove_contract_attri

[gcc r16-919] fold: DECL_VALUE_EXPR isn't simple [PR120400]

2025-05-27 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:ee636671898c6bce63d9b2a698007b609aabbfe8 commit r16-919-gee636671898c6bce63d9b2a698007b609aabbfe8 Author: Jason Merrill Date: Fri May 23 09:41:25 2025 -0400 fold: DECL_VALUE_EXPR isn't simple [PR120400] This PR noted that fold_truth_andor was wrongly changing

[gcc r16-934] c++: modules and using-directives

2025-05-28 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:06b9c58c70a4fee7cc680aaeb5790aaadbb9fc77 commit r16-934-g06b9c58c70a4fee7cc680aaeb5790aaadbb9fc77 Author: Jason Merrill Date: Wed Nov 20 23:46:54 2024 +0100 c++: modules and using-directives We weren't representing 'using namespace' at all in modules, which b

[gcc r16-650] libstdc++: build testsuite with -Wabi

2025-05-15 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:f28ff1e4f1c91f46d80e26dd77917e47cdd41bbe commit r16-650-gf28ff1e4f1c91f46d80e26dd77917e47cdd41bbe Author: Jason Merrill Date: Thu May 1 10:20:25 2025 -0400 libstdc++: build testsuite with -Wabi I added this locally to check whether the PR120012 fix affects li

[gcc r16-652] c++: -fimplicit-constexpr and modules

2025-05-15 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:9694bb129c0dbf54138d94caa28d692842fdc233 commit r16-652-g9694bb129c0dbf54138d94caa28d692842fdc233 Author: Jason Merrill Date: Fri May 9 19:13:49 2025 -0400 c++: -fimplicit-constexpr and modules Import didn't like differences in DECL_DECLARED_CONSTEXPR_P due t

[gcc r16-653] c++: use normal std list for module tests

2025-05-15 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:9a2083f025fae3559474b961943484d764c2e6dd commit r16-653-g9a2083f025fae3559474b961943484d764c2e6dd Author: Jason Merrill Date: Mon Nov 18 19:48:41 2024 +0100 c++: use normal std list for module tests The modules tests have used their own version of the code to

[gcc r16-651] c++: one more PR99599 tweak

2025-05-15 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:2ee1fce9fc35de21b28823ccae433c90a0ce270b commit r16-651-g2ee1fce9fc35de21b28823ccae433c90a0ce270b Author: Jason Merrill Date: Wed May 14 10:23:32 2025 -0400 c++: one more PR99599 tweak Patrick pointed out that if the parm/arg types aren't complete yet at this

[gcc r16-670] c++: remove coroutines.exp

2025-05-15 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:de3cbcf9730b60db76c31c5b628f4bf2ebd6b284 commit r16-670-gde3cbcf9730b60db76c31c5b628f4bf2ebd6b284 Author: Jason Merrill Date: Sat May 10 11:24:38 2025 -0400 c++: remove coroutines.exp coroutines.exp was basically only there to add -std=c++20 to all the tests;

[gcc r16-829] c++: fix testcase comment

2025-05-22 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:f5016d8492e4067faef2f9403370a4b49f7a3898 commit r16-829-gf5016d8492e4067faef2f9403370a4b49f7a3898 Author: Jason Merrill Date: Thu May 22 16:09:51 2025 -0400 c++: fix testcase comment Typo. gcc/testsuite/ChangeLog: * g++.dg/opt/always

[gcc r16-828] c++: constexpr always_inline [PR120935]

2025-05-22 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:26b50c5fed8b0373c2c6100b5a92d1109bb20783 commit r16-828-g26b50c5fed8b0373c2c6100b5a92d1109bb20783 Author: Jason Merrill Date: Thu May 22 09:11:04 2025 -0400 c++: constexpr always_inline [PR120935] In cp_fold we do speculative constant evaluation of constexpr

[gcc r16-840] diagnostics: use -Wformat-diag more consistently

2025-05-23 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:32396d87b7d92aa2a89f3b2c09f4f1fe373f3ef0 commit r16-840-g32396d87b7d92aa2a89f3b2c09f4f1fe373f3ef0 Author: Jason Merrill Date: Thu May 22 10:10:04 2025 -0400 diagnostics: use -Wformat-diag more consistently r10-1211 added various -Wformat-diag warnings about q

[gcc r16-851] c++: drop push_tinst_level in mangling

2025-05-23 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:2f7802783034ad8611e1d25a4aec057d44c96720 commit r16-851-g2f7802783034ad8611e1d25a4aec057d44c96720 Author: Jason Merrill Date: Thu May 22 17:11:10 2025 -0400 c++: drop push_tinst_level in mangling I wondered why we needed to push/pop_tinst_level in mangle_decl

[gcc r16-1084] c++: add operator| for WMB_Flags

2025-06-03 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:c18f152447c0ae1ac752d8a14b582d099a329c0c commit r16-1084-gc18f152447c0ae1ac752d8a14b582d099a329c0c Author: Jason Merrill Date: Sat May 24 14:41:43 2025 -0400 c++: add operator| for WMB_Flags There are a lot of uses of | on WMB_Flags, that currently need to th

[gcc r16-1086] c++: add -fno-modules to some tests

2025-06-03 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:61fd6a338de5f8468969ce284a6435ce4e251e3e commit r16-1086-g61fd6a338de5f8468969ce284a6435ce4e251e3e Author: Jason Merrill Date: Thu Nov 21 20:43:17 2024 +0100 c++: add -fno-modules to some tests These tests in the modules/ directory specifically want to test

[gcc r16-1115] c++: constexpr prvalues vs genericize [PR120502]

2025-06-04 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:0292e066d5e87e84ff00510724987501b3931518 commit r16-1115-g0292e066d5e87e84ff00510724987501b3931518 Author: Jason Merrill Date: Wed Jun 4 13:31:02 2025 -0400 c++: constexpr prvalues vs genericize [PR120502] Here constexpr evaluation was getting confused by the

[gcc r16-1019] c++: more xobj lambda 'this' capture [PR113563]

2025-05-30 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:611d59589d8c48db051b31e727d7f52910a4cbcd commit r16-1019-g611d59589d8c48db051b31e727d7f52910a4cbcd Author: Jason Merrill Date: Fri May 30 08:59:31 2025 -0400 c++: more xobj lambda 'this' capture [PR113563] Nathaniel shared a more extensive test, which reveale

[gcc r16-944] c++: add __is_*destructible builtins [PR107600]

2025-05-28 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:0629924777ea20d56d9ea40c3915eb0327a22ac7 commit r16-944-g0629924777ea20d56d9ea40c3915eb0327a22ac7 Author: Jason Merrill Date: Wed May 28 11:42:00 2025 -0400 c++: add __is_*destructible builtins [PR107600] Typically "does this class have a trivial destructor"

[gcc r16-1023] c++: another xobj lambda testcase [PR120123]

2025-05-30 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:d10e3e0900c92479a6621e375070d4a99ca1fd57 commit r16-1023-gd10e3e0900c92479a6621e375070d4a99ca1fd57 Author: Jason Merrill Date: Fri May 30 18:27:45 2025 -0400 c++: another xobj lambda testcase [PR120123] Patrick noticed this was fixed by r16-970.

[gcc r13-9743] c++: lambda this capture and requires [PR120123]

2025-06-05 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:561607ff94a9c602de3cb6c09518a72c7ad6160f commit r13-9743-g561607ff94a9c602de3cb6c09518a72c7ad6160f Author: Jason Merrill Date: Fri May 30 18:27:45 2025 -0400 c++: lambda this capture and requires [PR120123] We shouldn't need to be within the lambda body to lo

[gcc r15-9807] c++: constexpr prvalues vs genericize [PR120502]

2025-06-09 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:4e4684ca6a79b22fe91acaa81af2d4a00d6e1345 commit r15-9807-g4e4684ca6a79b22fe91acaa81af2d4a00d6e1345 Author: Jason Merrill Date: Wed Jun 4 13:31:02 2025 -0400 c++: constexpr prvalues vs genericize [PR120502] Here constexpr evaluation was getting confused by the

[gcc r15-9808] c++: recursive template with deduced return [PR120555]

2025-06-09 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:e4940c042b753457748e2257a8b13ca3738b4fac commit r15-9808-ge4940c042b753457748e2257a8b13ca3738b4fac Author: Jason Merrill Date: Fri Jun 6 10:26:28 2025 -0400 c++: recursive template with deduced return [PR120555] Here since r15-4120 we were prematurely complai

[gcc r16-1035] c++: rename PR120123 test

2025-05-31 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:a0364f41a8a5c9f785da8681c78d22c430ac4d70 commit r16-1035-ga0364f41a8a5c9f785da8681c78d22c430ac4d70 Author: Jason Merrill Date: Sat May 31 23:10:44 2025 -0400 c++: rename PR120123 test As Patrick points out (and I had realized after pushing it), this testcase

[gcc r16-1054] c++: __is_destructible fixes [PR107600]

2025-06-02 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:d7f33a35bffe7b331b0f8475e52c2dcc1c5d2ea8 commit r16-1054-gd7f33a35bffe7b331b0f8475e52c2dcc1c5d2ea8 Author: Jason Merrill Date: Mon Jun 2 10:09:07 2025 -0400 c++: __is_destructible fixes [PR107600] destructible_expr was wrongly assuming that TO is a class type

[gcc r14-11823] c++: lambda this capture and requires [PR120123]

2025-06-02 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:6e10db3be0193514d8a67d1367d8fbe639e03b6a commit r14-11823-g6e10db3be0193514d8a67d1367d8fbe639e03b6a Author: Jason Merrill Date: Fri May 30 18:27:45 2025 -0400 c++: lambda this capture and requires [PR120123] We shouldn't need to be within the lambda body to l

[gcc r16-1053] c++: __has_trivial_destructor regression

2025-06-02 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:8a42538f9693a6608bb733860adec75a691f1940 commit r16-1053-g8a42538f9693a6608bb733860adec75a691f1940 Author: Jason Merrill Date: Mon Jun 2 08:36:22 2025 -0400 c++: __has_trivial_destructor regression We don't want the new call to get_dtor to cause function inst

[gcc r15-9757] c++: lambda this capture and requires [PR120123]

2025-06-02 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:c096341a0809b322ece478f67c5d7be6923a0169 commit r15-9757-gc096341a0809b322ece478f67c5d7be6923a0169 Author: Jason Merrill Date: Fri May 30 18:27:45 2025 -0400 c++: lambda this capture and requires [PR120123] We shouldn't need to be within the lambda body to lo

[gcc r16-968] c++: C++17 constexpr lambda and goto/static

2025-05-29 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:5c6364b09a67de8d2237f65016ea1e3365a76e8d commit r16-968-g5c6364b09a67de8d2237f65016ea1e3365a76e8d Author: Jason Merrill Date: Thu May 29 12:21:28 2025 -0400 c++: C++17 constexpr lambda and goto/static We only want the error for these cases for functions expli

[gcc r16-970] c++: xobj lambda 'this' capture [PR113563]

2025-05-29 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:2047aa4ce2ed9976fb36e984b43864fcd6f3a65d commit r16-970-g2047aa4ce2ed9976fb36e984b43864fcd6f3a65d Author: Jason Merrill Date: Thu May 29 12:36:23 2025 -0400 c++: xobj lambda 'this' capture [PR113563] Various places were still making assumptions that we could

[gcc r16-1063] c++: more __is_destructible fixes [PR107600]

2025-06-02 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:3d287bff14885598c75c1cb16b08e0ba4ba05bce commit r16-1063-g3d287bff14885598c75c1cb16b08e0ba4ba05bce Author: Jason Merrill Date: Mon Jun 2 14:58:42 2025 -0400 c++: more __is_destructible fixes [PR107600] PR c++/107600 gcc/cp/ChangeLog:

[gcc r12-11123] c++: lambda this capture and requires [PR120123]

2025-06-02 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:8bdbd3b73464f7b12b7d31af91660381be2b5e17 commit r12-11123-g8bdbd3b73464f7b12b7d31af91660381be2b5e17 Author: Jason Merrill Date: Fri May 30 18:27:45 2025 -0400 c++: lambda this capture and requires [PR120123] We shouldn't need to be within the lambda body to l

[gcc r16-1061] c++: constinit diagnostic regression [PR120506]

2025-06-02 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:49f421a31f63405d3ca466e144d010c550206e72 commit r16-1061-g49f421a31f63405d3ca466e144d010c550206e72 Author: Jason Merrill Date: Mon Jun 2 10:59:02 2025 -0400 c++: constinit diagnostic regression [PR120506] In r16-57 I thought it was unnecessary to mention inco

[gcc r16-1272] c++: recursive template with deduced return [PR120555]

2025-06-06 Thread Jason Merrill via Gcc-cvs
https://gcc.gnu.org/g:8d204f2a536f7253e4251aca7bc12af524800b4c commit r16-1272-g8d204f2a536f7253e4251aca7bc12af524800b4c Author: Jason Merrill Date: Fri Jun 6 10:26:28 2025 -0400 c++: recursive template with deduced return [PR120555] Here since r15-4120 we were prematurely complai

<    1   2   3