[Bug c++/114242] Coroutine with lambda-coroutine and operator new does not compile

2024-03-08 Thread src at andyf dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114242 Andreas Fertig changed: What|Removed |Added Resolution|--- |INVALID

[Bug c++/94404] [meta-bug] C++ core issues

2024-03-08 Thread src at andyf dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94404 Bug 94404 depends on bug 114242, which changed state. Bug 114242 Summary: Coroutine with lambda-coroutine and operator new does not compile https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114242 What|Removed

[Bug c++/114242] Coroutine with lambda-coroutine and operator new does not compile

2024-03-05 Thread src at andyf dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114242 --- Comment #5 from Andreas Fertig --- My latest conclusion is that my code is indeed invalid. In the case of the lambda, I have a class type. http://eel.is/c++draft/dcl.fct.def.coroutine#4 says that in such a case, p1 is an lvalue of *this. If

[Bug c++/114242] Coroutine with lambda-coroutine and operator new does not compile

2024-03-05 Thread src at andyf dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114242 --- Comment #4 from Andreas Fertig --- Thanks for looking into the issue! While CWG 2585 tweaks the wording, my reading is that the code should be valid even with C++20. Regardless of that, without the lambda, the code compiles and uses a

[Bug c++/114242] New: Coroutine with lambda-coroutine and operator new does not compile

2024-03-05 Thread src at andyf dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114242 Bug ID: 114242 Summary: Coroutine with lambda-coroutine and operator new does not compile Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug c++/98052] New: Allocation with new and deallocation with std::allocator should result in an error

2020-11-29 Thread src at andyf dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98052 Bug ID: 98052 Summary: Allocation with new and deallocation with std::allocator should result in an error Product: gcc Version: 10.2.0 Status: UNCONFIRMED