[LLVMbugs] [Bug 18038] New: Friend Template With Default Arguments In Namespace

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 22 20:10:37 PST 2013


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: unassignedclangbugs at nondot.org
          Reporter: holt.bg at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131123/6c9e21a7/attachment.html>


More information about the llvm-bugs mailing list