[Bug c++/64915] New: lambda partially drops constness of 'this'

2015-02-03 Thread gene at staubsaal dot de
mponent: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gene at staubsaal dot de When calling a non-const member function inside a lambda expression the constness of 'this' is being ignored: Example example.cpp: struct Foo { int x; void bar() const {

[Bug c++/64915] lambda partially drops constness of 'this'

2015-02-05 Thread gene at staubsaal dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64915 gene at staubsaal dot de changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution

[Bug c++/60463] Lambda function can call a non-const member function with const this

2015-02-05 Thread gene at staubsaal dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60463 gene at staubsaal dot de changed: What|Removed |Added CC||gene at staubsaal dot de

[Bug c++/115180] New: [regression] free-nonheap-object on std::vector usage

2024-05-21 Thread gene at staubsaal dot de via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gene at staubsaal dot de Target Milestone: --- Compiler: gcc (GCC) 14.1.1 Compile flags: -std=c++20 -O3 -Wfree-nonheap-object The following code produces an "-Wfree-nonheap-object" warning, which does

[Bug c++/115180] [regression] free-nonheap-object on std::vector usage

2024-05-21 Thread gene at staubsaal dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115180 gene at staubsaal dot de changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution

[Bug tree-optimization/115016] False positive -Wfree-nonheap-object using std::vector with -O3

2024-05-21 Thread gene at staubsaal dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115016 gene at staubsaal dot de changed: What|Removed |Added CC||gene at staubsaal dot de