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

           Summary: Warning improvement for cv-qualified free functions
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


Currently if you have a cv-qualified free function, you get the following
warning:

t.cpp:20:6: error: type qualifier is not allowed on this function
void foo() const {}
     ^

The ^ points at the function name rather than at the const, which it is really
complaining about. The text could also be improved to say:

const qualifier is not allowed on this function

or

volatile qualifier is not allowed on this function

or

const volatile qualifier is not allowed on this function

I imagine the errors for & and && in C++0x would be similar.

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to