[Bug c++/96439] New: [concepts] nested requirement allows calling a method of a local parameter

2020-08-03 Thread src at andyf dot de
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: src at andyf dot de Target Milestone: --- Hello, the following code is accepted by GCC 10.2.0 and trunk (as of 20200802): template struct array { constexpr auto size

[Bug c++/96745] New: [concepts] internal compiler error: in type_memfn_rqual, at cp/typeck.c:10389

2020-08-22 Thread src at andyf dot de
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: src at andyf dot de Target Milestone: --- Hello, the following code gives an internal compiler error. template struct Test { ~Test() requires true {} ~Test

[Bug c++/96355] New: [concepts] internal compiler error: in tsubst_pack_expansion, at cp/pt.c:12928

2020-07-28 Thread src at andyf dot de
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: src at andyf dot de Target Milestone: --- The following code (https://godbolt.org/z/edTK48) causes an internal compiler error: template requires requires { requires

[Bug c++/92477] New: [[nodiscard]] method in a decltype expression causes "warning: ignoring return value of"

2019-11-12 Thread src at andyf dot de
NCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: src at andyf dot de Target Milestone: --- Hello, consider this code: class Test { public: [[nodiscard]] int Get() const { return 42; } }; tem

[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
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: src at andyf dot de Target Milestone: --- Hello, the following code compiles without an error (https://godbolt.org/z/oPG8Ea) in GCC: #include constexpr auto fun

[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
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: src at andyf dot de Target Milestone: --- Hello, the following code is accepted by Clang but rejected by g++ and MSVC: https://compiler-explorer.com/z/7P548dGG3 Once the lambda

[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 cust

[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++/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 |Adde

[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 Status|UNCONFIRMED