[LLVMbugs] [Bug 19286] New: Microsoft mangling of return type deducing functions/lambdas that return local types is broken [prelim patch attached]

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 30 06:52:10 PDT 2014


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

            Bug ID: 19286
           Summary: Microsoft mangling of return type deducing
                    functions/lambdas that return local types is broken
                    [prelim patch attached]
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: faisalv at yahoo.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The following code causes clang to enter into an infinite recursion on windows
7 while attempting to microsoft-mangle the following lambda's operator function
type:


auto L = [] () {
     struct M {};
     return M{};
};  

auto X = L();


I have kludged together a quick and dirty patch to identify where the problem
lies, so that those who understand the microsoft-mangling process better can
either help me refine it - or if they prefer - modify it to make it
commit-worthy and commit it.


http://llvm-reviews.chandlerc.com/D3221

-- 
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/20140330/4c139dc0/attachment.html>


More information about the llvm-bugs mailing list