gcc-wwwdocs branch master updated. ed119bf29bf7a0a0cf9ae9fb28fbd71f83ff9245

2024-05-29 Thread Marek Polacek via Gcc-cvs-wwwdocs
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gcc-wwwdocs". The branch, master has been updated via ed119bf29bf7a0a0cf9ae9fb28fbd71f83ff9245 (commit) from

[gcc r15-871] c++: extend -Wself-move for mem-init-list [PR109396]

2024-05-28 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:efaaae49b307fcc7e771518da3edae49f92c19db commit r15-871-gefaaae49b307fcc7e771518da3edae49f92c19db Author: Marek Polacek Date: Thu May 23 15:49:42 2024 -0400 c++: extend -Wself-move for mem-init-list [PR109396] We already warn for: x = std::move

[gcc r15-868] c++: mark TARGET_EXPRs for function arguments eliding [PR114707]

2024-05-28 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:5bc731b83b51910dc7f7cacddb4257a16d62ee38 commit r15-868-g5bc731b83b51910dc7f7cacddb4257a16d62ee38 Author: Marek Polacek Date: Wed May 22 16:28:02 2024 -0400 c++: mark TARGET_EXPRs for function arguments eliding [PR114707] Coming back to our discussion in

[gcc r14-10235] c++: failure to suppress -Wsizeof-array-div in template [PR114983]

2024-05-22 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:c27d6c7fd03f95483d372eae2c96912ceee98a5e commit r14-10235-gc27d6c7fd03f95483d372eae2c96912ceee98a5e Author: Marek Polacek Date: Wed May 8 17:02:49 2024 -0400 c++: failure to suppress -Wsizeof-array-div in template [PR114983] -Wsizeof-array-div offers a way

[gcc r15-523] c++: ICE with reference NSDMI [PR114854]

2024-05-15 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:1a05332bbac98a4c002bef3fb45a3ad9d56b3a71 commit r15-523-g1a05332bbac98a4c002bef3fb45a3ad9d56b3a71 Author: Marek Polacek Date: Wed May 8 15:43:58 2024 -0400 c++: ICE with reference NSDMI [PR114854] Here we crash on a cp_gimplify_expr/TARGET_EXPR assert:

[gcc r15-522] c++: DR 569, DR 1693: fun with semicolons [PR113760]

2024-05-15 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:0b3eac4b54a52bf206b88743d1e987badc97cff4 commit r15-522-g0b3eac4b54a52bf206b88743d1e987badc97cff4 Author: Marek Polacek Date: Mon Feb 12 19:36:16 2024 -0500 c++: DR 569, DR 1693: fun with semicolons [PR113760] Prompted by c++/113760, I started looking into a

[gcc r15-515] c++: add test for DR 2855

2024-05-15 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:3cefe91b74f65f0db71472e01ca83c69e2cd81cc commit r15-515-g3cefe91b74f65f0db71472e01ca83c69e2cd81cc Author: Marek Polacek Date: Tue May 14 13:48:30 2024 -0400 c++: add test for DR 2855 Let int8_t x = 127; This DR says that while

gcc-wwwdocs branch master updated. ed2a7a47d4814413db7ac79068d7938c03ad639f

2024-05-14 Thread Marek Polacek via Gcc-cvs-wwwdocs
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gcc-wwwdocs". The branch, master has been updated via ed2a7a47d4814413db7ac79068d7938c03ad639f (commit) from

gcc-wwwdocs branch master updated. 9bf29b467ec2e5a40a2caa2dfba936be8ffa99b3

2024-05-13 Thread Marek Polacek via Gcc-cvs-wwwdocs
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gcc-wwwdocs". The branch, master has been updated via 9bf29b467ec2e5a40a2caa2dfba936be8ffa99b3 (commit) via

[gcc r15-351] c++: failure to suppress -Wsizeof-array-div in template [PR114983]

2024-05-09 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:646db3d30bd071a1b671b4f91c9ea2ab7f2be21c commit r15-351-g646db3d30bd071a1b671b4f91c9ea2ab7f2be21c Author: Marek Polacek Date: Wed May 8 17:02:49 2024 -0400 c++: failure to suppress -Wsizeof-array-div in template [PR114983] -Wsizeof-array-div offers a way to

[gcc r15-348] c++: lambda capturing structured bindings [PR85889]

2024-05-09 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:46bafd9a6b9b776142e0b1424a6ac02e3a2fd300 commit r15-348-g46bafd9a6b9b776142e0b1424a6ac02e3a2fd300 Author: Marek Polacek Date: Fri Mar 1 17:13:02 2024 -0500 c++: lambda capturing structured bindings [PR85889] clarifies that it's OK

[gcc r15-329] c++: #pragma doesn't disable -Wunused-label [PR113582]

2024-05-08 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:d9318caed3bbff8136d13e00dcfc020a59d10f78 commit r15-329-gd9318caed3bbff8136d13e00dcfc020a59d10f78 Author: Marek Polacek Date: Wed Jan 24 18:06:48 2024 -0500 c++: #pragma doesn't disable -Wunused-label [PR113582] The PR complains that void

[gcc r15-301] c++: DECL_DECOMPOSITION_P cleanup

2024-05-07 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:7887d808876c00e682e11c19caae1a0dbc9fa3a8 commit r15-301-g7887d808876c00e682e11c19caae1a0dbc9fa3a8 Author: Marek Polacek Date: Fri Mar 1 13:36:51 2024 -0500 c++: DECL_DECOMPOSITION_P cleanup DECL_DECOMPOSITION_P already checks VAR_P but we repeat the check

[gcc r14-10075] testsuite: prune -freport-bug output

2024-04-22 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:0db19228a9feba5a8f4e13b21f25f3aa8a6c5e85 commit r14-10075-g0db19228a9feba5a8f4e13b21f25f3aa8a6c5e85 Author: Marek Polacek Date: Fri Apr 19 13:51:41 2024 -0400 testsuite: prune -freport-bug output When the compiler defaults to -freport-bug, a few dg-ice tests

[gcc r14-9950] c++: ICE with temporary of class type in array DMI [PR109966]

2024-04-12 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:6039925631780741ba77666ef2ef743aa2a925a8 commit r14-9950-g6039925631780741ba77666ef2ef743aa2a925a8 Author: Marek Polacek Date: Mon Mar 11 17:45:55 2024 -0400 c++: ICE with temporary of class type in array DMI [PR109966] This ICE started with the fairly

gcc-wwwdocs branch master updated. d18a80a52a7ec2edd7ef9a583d8920d61c0b48e5

2024-04-12 Thread Marek Polacek via Gcc-cvs-wwwdocs
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gcc-wwwdocs". The branch, master has been updated via d18a80a52a7ec2edd7ef9a583d8920d61c0b48e5 (commit) from

gcc-wwwdocs branch master updated. 3ca51fec661f3340fe308662405e602bcf3fe8d7

2024-04-12 Thread Marek Polacek via Gcc-cvs-wwwdocs
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gcc-wwwdocs". The branch, master has been updated via 3ca51fec661f3340fe308662405e602bcf3fe8d7 (commit) from

gcc-wwwdocs branch master updated. 9e32f911b70a8c2303b9b60679ce337896ccffdd

2024-04-11 Thread Marek Polacek via Gcc-cvs-wwwdocs
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gcc-wwwdocs". The branch, master has been updated via 9e32f911b70a8c2303b9b60679ce337896ccffdd (commit) from

[gcc r14-9903] target: missing -Whardened with -fcf-protection=none [PR114606]

2024-04-10 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:b8b148bc22673689fda19711b428b544462be2e4 commit r14-9903-gb8b148bc22673689fda19711b428b544462be2e4 Author: Marek Polacek Date: Fri Apr 5 12:37:19 2024 -0400 target: missing -Whardened with -fcf-protection=none [PR114606] -Whardened warns when -fhardened

gcc-wwwdocs branch master updated. d65752191baaa137eb6d604b802e7b9170a39752

2024-04-10 Thread Marek Polacek via Gcc-cvs-wwwdocs
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gcc-wwwdocs". The branch, master has been updated via d65752191baaa137eb6d604b802e7b9170a39752 (commit) from

[gcc r14-9815] c++: add fixed test [PR91079]

2024-04-05 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:2b2d3a135a43cbafadd8957e0b2543f38c390437 commit r14-9815-g2b2d3a135a43cbafadd8957e0b2543f38c390437 Author: Marek Polacek Date: Fri Apr 5 13:40:33 2024 -0400 c++: add fixed test [PR91079] Fixed by r12-2975. PR c++/91079 DR 1881

[gcc r14-9810] c-family: remove dead #undef

2024-04-05 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:e4d074321bcafa6504ee6b77754b4450a4622f9d commit r14-9810-ge4d074321bcafa6504ee6b77754b4450a4622f9d Author: Marek Polacek Date: Thu Apr 4 19:28:00 2024 -0400 c-family: remove dead #undef The #undef was added in r0-90320-g100d537d7a7b5c but it never did

[gcc r14-9809] c++: constexpr error with fn redecl in local scope [PR111132]

2024-04-05 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:8c9063825ce726fcbbc067d8a6d062cc2d4acf5e commit r14-9809-g8c9063825ce726fcbbc067d8a6d062cc2d4acf5e Author: Marek Polacek Date: Tue Apr 2 12:59:38 2024 -0400 c++: constexpr error with fn redecl in local scope [PR32] We evaluate constexpr functions on the

[gcc r14-9759] c++: make __is_array return false for T[0] [PR114479]

2024-04-02 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:2f2924078ce51c2a0da3ad8f958f2d1de533969a commit r14-9759-g2f2924078ce51c2a0da3ad8f958f2d1de533969a Author: Marek Polacek Date: Mon Apr 1 12:55:46 2024 -0400 c++: make __is_array return false for T[0] [PR114479] When we switched to using the __is_array

[gcc r13-8560] c++: ICE with scoped enum in switch condition [PR103825]

2024-04-02 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:22510e4a68aa9ca850db34ae62c21c58442d8ab3 commit r13-8560-g22510e4a68aa9ca850db34ae62c21c58442d8ab3 Author: Marek Polacek Date: Fri Mar 29 16:59:37 2024 -0400 c++: ICE with scoped enum in switch condition [PR103825] Here we ICE when gimplifying

[gcc r14-9758] c++: ICE with scoped enum in switch condition [PR103825]

2024-04-02 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:daa2e7c7ffe49b788357f7f2c9ef1c9b125c1f8c commit r14-9758-gdaa2e7c7ffe49b788357f7f2c9ef1c9b125c1f8c Author: Marek Polacek Date: Fri Mar 29 16:59:37 2024 -0400 c++: ICE with scoped enum in switch condition [PR103825] Here we ICE when gimplifying

[gcc r14-9674] c++: add fixed test [PR100557]

2024-03-26 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:c0e199e4dbe652cd16d7248f0bfe166540f5d95b commit r14-9674-gc0e199e4dbe652cd16d7248f0bfe166540f5d95b Author: Marek Polacek Date: Tue Mar 26 10:39:48 2024 -0400 c++: add fixed test [PR100557] We used to hit the "Error reporting routines re-entered." ICE here

[gcc r14-9659] c++: ICE with noexcept and local specialization, again [PR114349]

2024-03-25 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:8651991fe2ea90a7276e91673b15b5c3865f14d7 commit r14-9659-g8651991fe2ea90a7276e91673b15b5c3865f14d7 Author: Marek Polacek Date: Fri Mar 15 09:23:28 2024 -0400 c++: ICE with noexcept and local specialization, again [PR114349] Patrick noticed that my

[gcc r14-9658] c++: broken direct-init with trailing array member [PR114439]

2024-03-25 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:de0886d48032332d10e4acb5d15c8789b281b6fe commit r14-9658-gde0886d48032332d10e4acb5d15c8789b281b6fe Author: Marek Polacek Date: Mon Mar 25 15:32:20 2024 -0400 c++: broken direct-init with trailing array member [PR114439] can_init_array_with_p is wrongly

[gcc r14-9622] c++: direct-init of an array of class type [PR59465]

2024-03-22 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:d1d8fd2884b44598d80de1038b086eec41519d4b commit r14-9622-gd1d8fd2884b44598d80de1038b086eec41519d4b Author: Marek Polacek Date: Thu Feb 22 18:49:08 2024 -0500 c++: direct-init of an array of class type [PR59465] ...from another array in a mem-initializer

[gcc r14-9596] c++: explicit inst of template method not generated [PR110323]

2024-03-21 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:081f8937cb82da311c224da04b0c6cbd57a8fb5d commit r14-9596-g081f8937cb82da311c224da04b0c6cbd57a8fb5d Author: Marek Polacek Date: Thu Mar 7 20:41:23 2024 -0500 c++: explicit inst of template method not generated [PR110323] Consider constexpr int VAL

[gcc r14-9558] testsuite: fix target for linkage-1.C

2024-03-19 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:7a6261332de58fd47283d694d8cd61ea7cdb324c commit r14-9558-g7a6261332de58fd47283d694d8cd61ea7cdb324c Author: Marek Polacek Date: Tue Mar 19 17:15:38 2024 -0400 testsuite: fix target for linkage-1.C This test fails in C++11 due to: linkage-1.C:3:8:

[gcc r14-9364] c++: ICE with variable template and [[deprecated]] [PR110031]

2024-03-07 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:9f915684624413f96e1a5ffada398ccd1c533e38 commit r14-9364-g9f915684624413f96e1a5ffada398ccd1c533e38 Author: Marek Polacek Date: Mon Mar 4 12:35:18 2024 -0500 c++: ICE with variable template and [[deprecated]] [PR110031] lookup_and_finish_template_variable

[gcc r14-9339] c++: ICE with noexcept and local specialization [PR114114]

2024-03-06 Thread Marek Polacek via Gcc-cvs
https://gcc.gnu.org/g:dc6c3bfb59baab28b998e18396c06087b6d9b0ed commit r14-9339-gdc6c3bfb59baab28b998e18396c06087b6d9b0ed Author: Marek Polacek Date: Tue Mar 5 13:33:10 2024 -0500 c++: ICE with noexcept and local specialization [PR114114] Here we ICE because we call