https://bugs.llvm.org/show_bug.cgi?id=46102

Rafael Ávila de Espíndola <raf...@espindo.la> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Rafael Ávila de Espíndola <raf...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to