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

            Bug ID: 18038
           Summary: Friend Template With Default Arguments In Namespace
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Created attachment 11595
  --> http://llvm.org/bugs/attachment.cgi?id=11595&action=edit
Does not compile (compilation error is in a comment in the source). Difference
from `works.cpp` is that class and function are in a namespace.

Clang fails to find the default template argument, but only if it's in a
namespace. This seems like a weird corner case that may have been missed in
tests but has come up for me. GCC is able to compile it.

I have attached two nearly identical versions. One (works.cpp), does *not* have
anything in a namespace. The other (broken.cpp) has all of them in a single
namespace (N).

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