[llvm-bugs] [Bug 26050] New: missing diagnostic for shadowing non-type template parameter with various kinds of entity
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Wed Jan  6 13:37:46 PST 2016
    
    
  
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: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160106/56f2637b/attachment.html>
    
    
More information about the llvm-bugs
mailing list