[llvm-bugs] [Bug 46102] Non mutable lambdas still see some non const references
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed May 27 08:30:14 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46102
Rafael Ávila de Espíndola <rafael at espindo.la> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #1 from Rafael Ávila de Espíndola <rafael at espindo.la> ---
A college just pointed out that a const method is not implemented by making the
member variables const inside. In particular, both gcc and clang will compile
#include <utility>
struct foo {
int bar;
void zed() const {
static_assert(std::is_same_v<decltype(bar), int>);
}
};
So I now think this is a bug in gcc:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95368
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200527/2517a87a/attachment.html>
More information about the llvm-bugs
mailing list