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

             Bug #: 14296
           Summary: function parameter name redeclarations not detected
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


According to c++11 3.3.3/2 "A parameter name shall not be redeclared in the
outermost block of the function definition nor in the outermost block of any
handler associated with a function-try-block."
Here is the code.

void foo(int ii) try {
}
catch (...) {
    int ii;
}

int main() {
    foo(1);
    return (0);
}

clang++ -std=c++0x test.cpp

Compiles it without any diagnostics.

Alexey Bataev
Software Engineer
Intel Compiler Team
Intel Corp.

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

Reply via email to