[PATCH] D20192: [Sema] Fix bug to do with lookup of template friend function in namespace

Meador Inge via cfe-commits cfe-commits at lists.llvm.org
Mon May 16 09:27:05 PDT 2016


meadori added a subscriber: meadori.
meadori added a comment.

I see failure when running the Clang test suite with this patch:

  Command Output (stderr):
  --
  error: 'error' diagnostics expected but not seen: 
    File /Users/meadori/Code/src/llvm/llvm-mainline/tools/clang/test/SemaTemplate/friend-template.cpp Line 80: template non-type parameter has a different type 'long' in template redeclaration
    File /Users/meadori/Code/src/llvm/llvm-mainline/tools/clang/test/SemaTemplate/friend-template.cpp Line 304: different type 'char' in template redeclaration
  error: 'error' diagnostics seen but not expected: 
    File /Users/meadori/Code/src/llvm/llvm-mainline/tools/clang/test/SemaTemplate/friend-template.cpp Line 79: template non-type parameter has a different type 'long' in template redeclaration
    File /Users/meadori/Code/src/llvm/llvm-mainline/tools/clang/test/SemaTemplate/friend-template.cpp Line 303: template non-type parameter has a different type 'char' in template redeclaration
  error: 'note' diagnostics expected but not seen: 
    File /Users/meadori/Code/src/llvm/llvm-mainline/tools/clang/test/SemaTemplate/friend-template.cpp Line 73: previous non-type template parameter with type 'int' is here
    File /Users/meadori/Code/src/llvm/llvm-mainline/tools/clang/test/SemaTemplate/friend-template.cpp Line 300: previous non-type template parameter with type 'int' is here
  error: 'note' diagnostics seen but not expected: 
    File /Users/meadori/Code/src/llvm/llvm-mainline/tools/clang/test/SemaTemplate/friend-template.cpp Line 72: previous non-type template parameter with type 'int' is here
    File /Users/meadori/Code/src/llvm/llvm-mainline/tools/clang/test/SemaTemplate/friend-template.cpp Line 299: previous non-type template parameter with type 'int' is here
  8 errors generated.


http://reviews.llvm.org/D20192





More information about the cfe-commits mailing list