[LLVMbugs] [Bug 6383] New: use of undeclared identifier
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Feb 22 03:35:50 PST 2010
http://www.llvm.org/bugs/show_bug.cgi?id=6383
Summary: use of undeclared identifier
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rene at exactcode.de
CC: dgregor at apple.com
Estimated Hours: 0.0
Another issue, somehow related to name lookup, again reduced from real world
code:
void test (bool gross)
{
struct compare_and_set
{
void operator() (const bool inner, const bool gross = false)
{
// the code
}
} compare_and_set2;
compare_and_set2 (false, gross);
}
test.cc:11:28: error: use of undeclared identifier 'gross'
compare_and_set2 (false, gross);
^
1 diagnostic generated.
Either renaming the outer, the argument gross or removing the first argument of
operator() makes it compile with clang++, ,too.
--
Configure bugmail: http://www.llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the llvm-bugs
mailing list