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

            Bug ID: 41760
           Summary: get_default_resource is undefined
           Product: libc++
           Version: unspecified
          Hardware: Macintosh
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: z.zoel...@gmail.com
                CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com

The following code fails to compile:

int main()
{
    std::experimental::pmr::polymorphic_allocator<char> alloc;
}

with the error:

Undefined symbols for architecture x86_64:
  "std::experimental::fundamentals_v1::pmr::get_default_resource()", referenced
from:
      Foo::test() in mono_test.pass.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It seems for whatever reason _VSTD_LFTS_PMR::get_default_resource() is declared
but never defined.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to