[LLVMbugs] [Bug 14216] Analyzer failed on clang error: redefinition of parameter

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 30 10:22:58 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=14216

Jordan Rose <jordan_rose at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jordan_rose at apple.com
         Resolution|                            |INVALID

--- Comment #2 from Jordan Rose <jordan_rose at apple.com> 2012-10-30 12:22:58 CDT ---
This is also a compiler error, and the compiler is correct. You can't have two
parameters with the same name. I can't pin this one down quite as accurately,
but C++11 [basic.scope] is the place to look -- the same name with the same
scope ("function prototype scope") can't refer to two different objects.

-- 
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