Skip to content

Modules Header Unit Multiple Definition #139668

Open
@CubedProgrammer

Description

@CubedProgrammer

This following code.

import <sstream>;
import <string>;
std::string s;

Compiled with

clang++ -std=c++20 -stdlib=libc++ -fmodule-file=sstream.pcm -fmodule-file=string.pcm -c PROGRAM.cc

Will produce a multiple definition error, saying that string is defined twice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:modulesC++20 modules and Clang Header Moduleslibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions