https://llvm.org/bugs/show_bug.cgi?id=26050

            Bug ID: 26050
           Summary: missing diagnostic for shadowing non-type template
                    parameter with various kinds of entity
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: richard-l...@metafoo.co.uk
                CC: dgre...@apple.com, llvm-bugs@lists.llvm.org
    Classification: Unclassified

Non-type template parameters are only in IDNS_Ordinary, so redeclaration lookup
that doesn't look in IDNS_Ordinary does not find them and no conflict is
diagnosed. Example:

template<int A> void f() {
  struct A {}; // missing diagnostic
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to