http://llvm.org/bugs/show_bug.cgi?id=12811
Bug #: 12811
Summary: Error recovery can trigger Assertion `getResultKind()
== Found && "getFoundDecl called on non-unique
result"'
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 8544
--> http://llvm.org/bugs/attachment.cgi?id=8544
reduced test case (provided by Craig Schroeder)
Running clang trunk on the following C code:
a(&p);a(p);a(&p);
results in:
t6.c:1:3: error: expected parameter declarator
a(&p);a(p);a(&p);
^
t6.c:1:3: error: expected ')'
t6.c:1:2: note: to match this '('
a(&p);a(p);a(&p);
^
t6.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
a(&p);a(p);a(&p);
^
t6.c:1:7: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
a(&p);a(p);a(&p);
^
t6.c:1:9: error: a parameter list without types is only allowed in a function
definition
a(&p);a(p);a(&p);
^
t6.c:1:14: error: expected parameter declarator
a(&p);a(p);a(&p);
^
t6.c:1:14: error: expected ')'
t6.c:1:13: note: to match this '('
a(&p);a(p);a(&p);
^
t6.c:1:12: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
a(&p);a(p);a(&p);
^
clang:
/src/llvm-trunk-writable/tools/clang/lib/Sema/../../include/clang/Sema/Lookup.h:432:
clang::NamedDecl* clang::LookupResult::getFoundDecl() const: Assertion
`getResultKind() == Found && "getFoundDecl called on non-unique result"'
failed.
--
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