[LLVMbugs] [Bug 7824] New: Warning improvement for cv-qualified free functions
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Aug 5 00:32:53 PDT 2010
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: unassignedclangbugs at nondot.org
ReportedBy: ace2001ac at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
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.
More information about the llvm-bugs
mailing list