[LLVMbugs] [Bug 13198] New: Inconsistent behavior for redefinition of local variables
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Jun 25 04:22:28 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13198
Bug #: 13198
Summary: Inconsistent behavior for redefinition of local
variables
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: joerg at NetBSD.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Consider:
void fn1 () { int it; for (;;) long it; }
void fn2 () { for (int it;;) long it; }
GCC silently accepts both. Clang complains about fn2, but not about fn1. I
believe both cases should get the same handling.
--
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