http://llvm.org/bugs/show_bug.cgi?id=8004
Summary: diagnostic points to function not keyword
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
The "const" keyword makes this code invalid:
static void func1(int a, int b,
int c, int d) const {
}
but the error from clang doesn't show the const at all, since it's pointing at
the func1:
$ clang++ -fsyntax-only b2954466.cc
b2954466.cc:1:13: error: type qualifier is not allowed on this function
static void func1(int a, int b,
^
1 error generated.
It'd be awesome if we pointed to the "const" instead.
--
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