[llvm-bugs] [Bug 38460] New: assert with -fdelated-template-parsing: getContainingDC(DC) == CurContext && "The next DeclContext should be lexically contained in the current one."

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 6 05:50:41 PDT 2018


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

            Bug ID: 38460
           Summary: assert with -fdelated-template-parsing:
                    getContainingDC(DC) == CurContext && "The next
                    DeclContext should be lexically contained in the
                    current one."
           Product: new-bugs
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: hans at chromium.org
                CC: llvm-bugs at lists.llvm.org

Reduced repro:

struct S {
  template <typename> struct T {
    static void foo() {
      struct U { void dummy() {} };
    }
  };
};

void f() {
  S::T<int>::foo();
}

$ clang -cc1 -triple x86_64-pc-win32 -fdelayed-template-parsing a.cc



This was hit when using Abseil (google internal bug 73514249):

std::vector<string> vs = absl::StrSplit(...);

-- 
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/20180806/e949fb8e/attachment.html>


More information about the llvm-bugs mailing list