[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: marius doerner (mariusdr) Changes Closes #131432 Raise an error when placement new is used to modify a const-qualified variable in a constexpr function. Note that diag::note_constexpr_modify_const_type is used since the it is also rais

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-04-04 Thread marius doerner via cfe-commits
mariusdr wrote: Added release notes under "Bug Fixes to C++ Support". Thanks for the review. https://github.com/llvm/llvm-project/pull/132460 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-03-26 Thread marius doerner via cfe-commits
https://github.com/mariusdr created https://github.com/llvm/llvm-project/pull/132460 Closes #131432 Raise an error when placement new is used to modify a const-qualified variable in a constexpr function. Note that diag::note_constexpr_modify_const_type is used since the it is also raised wh

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-03-25 Thread marius doerner via cfe-commits
mariusdr wrote: > Thanks. Will you need me to merge that for you? Yes, please https://github.com/llvm/llvm-project/pull/132460 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-03-25 Thread via cfe-commits
github-actions[bot] wrote: @mariusdr Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-03-25 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/132460 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-03-25 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. Thanks. Will you need me to merge that for you? https://github.com/llvm/llvm-project/pull/132460 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-03-24 Thread marius doerner via cfe-commits
https://github.com/mariusdr updated https://github.com/llvm/llvm-project/pull/132460 >From d4af25b14fb21f50c3771cce4595ca5c1bb920a7 Mon Sep 17 00:00:00 2001 From: marius doerner Date: Fri, 21 Mar 2025 20:19:57 +0100 Subject: [PATCH 1/3] [clang] Placement new error when modifying consts Raise a

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-03-24 Thread via cfe-commits
cor3ntin wrote: This change needs a release note. Please add an entry to `clang/docs/ReleaseNotes.rst` in the section the most adapted to the change, and referencing any Github issue this change fixes. Thanks! https://github.com/llvm/llvm-project/pull/132460 ___

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-03-23 Thread marius doerner via cfe-commits
https://github.com/mariusdr updated https://github.com/llvm/llvm-project/pull/132460 >From d4af25b14fb21f50c3771cce4595ca5c1bb920a7 Mon Sep 17 00:00:00 2001 From: marius doerner Date: Fri, 21 Mar 2025 20:19:57 +0100 Subject: [PATCH 1/2] [clang] Placement new error when modifying consts Raise a

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-03-23 Thread marius doerner via cfe-commits
mariusdr wrote: > The tests should go into a file not under `ByteCode/` since they aren't > specific to the bytecode interpreter. There should be existing placement new > tests in `SemaCXX/`. Thanks for the hint, moved them to clang/test/SemaCXX/cxx2c-constexpr-placement-new.cpp https://gith

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-03-23 Thread marius doerner via cfe-commits
https://github.com/mariusdr updated https://github.com/llvm/llvm-project/pull/132460 >From d4af25b14fb21f50c3771cce4595ca5c1bb920a7 Mon Sep 17 00:00:00 2001 From: marius doerner Date: Fri, 21 Mar 2025 20:19:57 +0100 Subject: [PATCH 1/2] [clang] Placement new error when modifying consts Raise a

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-03-21 Thread Timm Baeder via cfe-commits
tbaederr wrote: The tests should go into a file not under `ByteCode/` since they aren't specific to the bytecode interpreter. There should be existing placement new tests in `SemaCXX/`. https://github.com/llvm/llvm-project/pull/132460 ___ cfe-commits

[clang] [clang] Placement new error when modifying consts (PR #132460)

2025-03-21 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it