Skip to content

[clang] fails to compile print("{}", 5s) when using libstdc++ #139067

@Taw3e8

Description

@Taw3e8

This fails to compile without adding libc++:

#include <chrono>
#include <print>

int main() {
	using namespace std::chrono_literals;
	std::print("{}", 5s);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"diverges-from:edgDoes the clang frontend diverge from edg compilerdiverges-from:gccDoes the clang frontend diverge from gcc on this issuediverges-from:msvcDoes the clang frontend diverge from msvc on this issuelibstdc++GNU libstdc++ C++ standard libraryregression

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions