[llvm-bugs] [Bug 39759] New: Instantiated local in inner and outer scopes

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 22 13:24:13 PST 2018


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

            Bug ID: 39759
           Summary: Instantiated local in inner and outer scopes
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mikhail.strelnikov at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

int main() {
    auto f = [](auto a) { a(42); };
    f([&](auto) {f([&](auto) {});});
}

"C:/Program Files/LLVM/bin/clang++.exe" -c -o "f.obj" f.cpp

Assertion failed: Current->LocalDecls.find(D) == Current->LocalDecls.end() &&
"Instantiated local in inner and outer scopes", file
C:\src\llvm_package_346630\llvm\tools\clang\lib\Sema\SemaTemplateInstantiate.cpp,
line 2957

-- 
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/20181122/d58cbd76/attachment.html>


More information about the llvm-bugs mailing list