[llvm-bugs] [Bug 30291] New: clang failed to parse a template type when with multi-inheritanced lambda objects

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 6 07:14:11 PDT 2016


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

            Bug ID: 30291
           Summary: clang failed to parse a template type when with
                    multi-inheritanced lambda objects
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++14
          Assignee: unassignedclangbugs at nondot.org
          Reporter: wang_feng at live.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17214
  --> https://llvm.org/bugs/attachment.cgi?id=17214&action=edit
sample code

The attached code works well with clang++, when the `struct overloader` is
defined in a namespace; however, if I remove this structure out of the
namespace, the compilation will go wrong.

+ worked within namespace --
http://melpon.org/wandbox/permlink/sZlVjyM28BySF6CM

+ not worked outside a namespace --
http://melpon.org/wandbox/permlink/oKfH154NXqKsN5Ic

-- 
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/20160906/e0c581c8/attachment-0001.html>


More information about the llvm-bugs mailing list