http://llvm.org/bugs/show_bug.cgi?id=10885
Summary: Better diagnostic for nested functions
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Consider the simplest case of nested functions like:
void f(void)
{
void g(void)
{
}
}
At the moment clang gives:
test.c:3:14: error: expected ';' at end of declaration
pointing before the '{' and after g(void). It would be nice if the parser
reported this directly like
test.c:3:14: error: unsupported nested function or missing ';' at end of
declaration
--
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