Skip to content

Template Instantiation Error in system/lib/libcxx/include/__memory/pointer_traits.h #21603

Closed
@SaraBaradaran

Description

@SaraBaradaran

I faced the following error when compiling proxy (https://github.com/microsoft/proxy) using Emscripten. It seems there is a bug in system/lib/libcxx/include/__memory/pointer_traits.h header.

version: latest and even 3.1.54

/home/sara/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__memory/pointer_traits.h:118:22: error: implicit instantiation of undefined template 'std::__pointer_traits_element_type<std::nullptr_t>'
  118 |     typedef typename __pointer_traits_element_type<pointer>::type    element_type;
      |                      ^

You can reproduce the error using the following commands:

$ git clone https://github.com/microsoft/proxy
$ cd proxy/build
$ emcmake cmake ..
$ emmake cmake --build .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions