[LLVMbugs] [Bug 12450] New: Using 'this' in decltype

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 3 15:07:32 PDT 2012


             Bug #: 12450
           Summary: Using 'this' in decltype
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: mikhail.strelnikov at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

class a 
    void foo(); 

    template<typename T> 
    auto bar(T) -> decltype(this->foo()); 

produces an error: invalid use of 'this' outside of a nonstatic member function

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