[LLVMbugs] [Bug 10785] crash on invalid use of variable of type "const T&" where T = an unbound method

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Oct 9 13:46:15 PDT 2011


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

Douglas Gregor <dgregor at apple.com> changed:

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

--- Comment #1 from Douglas Gregor <dgregor at apple.com> 2011-10-09 15:46:15 CDT ---
This no longer crashes with mainline Clang:


t2.cpp:17:5: error: no matching function for call to object of type
      'FunctionLike'
    fl(cls.method);
    ^~
t2.cpp:10:31: note: candidate template ignored: couldn't infer template
argument
      'T'
    template<typename T> void operator()(const T&) {
                              ^

-- 
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