[llvm-bugs] [Bug 33739] New: Nested friend qualifiers seem to be ignored

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 10 22:28:02 PDT 2017


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

            Bug ID: 33739
           Summary: Nested friend qualifiers seem to be ignored
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: miod at trust-in-soft.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

Created attachment 18774
  --> https://bugs.llvm.org/attachment.cgi?id=18774&action=edit
nested friend statement testcase

[class.friend]p6 allows a complete function to be declared inline in a friend
statement. That function may contain local classes, which can in turn have
other friend statements. These inner statements seem to be ignored.

The attached simple example fails to compile with clang 3.8, 3.9 and 4.0. It
compiles with gcc 5.4.

-- 
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/20170711/871515bb/attachment.html>


More information about the llvm-bugs mailing list