[LLVMbugs] [Bug 7930] New: improve diagnostic note for call to private/protected method
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Aug 17 11:05:23 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7930
Summary: improve diagnostic note for call to private/protected
method
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bugzilla-clang at sogetthis.com
CC: llvmbugs at cs.uiuc.edu
example:
$ cat test.cpp
class Foo {
Foo();
};
Foo::Foo() {}
int main() {
Foo a;
return 0;
}
$ clang++ ./test.cpp
./test.cpp:7:5: error: calling a private constructor of class 'Foo'
Foo a;
^
./test.cpp:4:6: note: declared private here
Foo::Foo() {}
^
1 error generated.
This is much better than gcc already, but the note is not correct since it
points not to the declaration but the implementation. (Hope I got the terms
right.)
--
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