[LLVMbugs] [Bug 6678] incoherent warning when calling a non-const method with a const object

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 31 08:48:49 PDT 2011


Douglas Gregor <dgregor at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Douglas Gregor <dgregor at apple.com> 2011-10-31 10:48:49 CDT ---
Top-of-tree Clang does much better:

t.cpp:7:3: error: member function 'bar' not viable: 'this' argument has type
      'const Foo', but function is not marked const
t.cpp:3:8: note: 'bar' declared here
  void bar();

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list