[LLVMbugs] [Bug 12836] New: Attempt to match functions containing undeclared identifiers to unimplemented functions
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue May 15 13:33:24 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12836
Bug #: 12836
Summary: Attempt to match functions containing undeclared
identifiers to unimplemented functions
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: fischman at chromium.org
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
IWBN if clang++ suggested that I might have meant "int MyClass::fn()" instead
of the bare "int fn()" in the example below:
struct MyClass {
int fn();
int field_;
};
int fn() {
return field_;
}
$ clang++ -c t.cc
t.cc:7:10: error: use of undeclared identifier 'field_'
return field_;
^
1 error generated.
--
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