http://llvm.org/bugs/show_bug.cgi?id=19593
Bug ID: 19593
Summary: bad diagnostic on "this" as parameter name
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Testcase:
struct A {
static void B(A* this) {}
};
$ clang a.cc
a.cc:2:19: error: expected ')'
static void B(A* this) {}
^
a.cc:2:15: note: to match this '('
static void B(A* this) {}
^
1 error generated.
We could have errored on the attempt to use the "this" keyword as a variable
name, then created the variable anyways.
--
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