[LLVMbugs] [Bug 22011] Redundant compilation "error : reference to non-static member function must be called"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 30 13:04:55 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=22011

Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |rnk at google.com
         Resolution|---                         |INVALID

--- Comment #1 from Reid Kleckner <rnk at google.com> ---
Clang is right to reject here. Because you left out the required 'template'
keyword, we parsed it like this:

  return type().func<i>(a); // as written
  return ((type().func) < i) > (a); // as parsed

Then during instantiation we saw this:
  (type().func)

And told you that you have to call the method 'func'.

The best we could hope for is an improved diagnostic.

-- 
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/20141230/7a6116e6/attachment.html>


More information about the llvm-bugs mailing list