Skip to content

Unexpected "reference to 'std' is ambiguous" error with C++20 modules #145975

Closed
@MikailBag

Description

@MikailBag

Reproducer: https://gist.github.com/MikailBag/1759e1c092649ee749fa0f620805fd62

Adding namespace std {} to GMF in connection.cpp fixes error.

Compiler version:

$ /home/mb/projects/llvm-project/build/bin/clang++ --version
clang version 21.0.0git (https://github.com/llvm/llvm-project.git 1276a5b368493cc73ef0febee35a6591b92464d5)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/mb/projects/llvm-project/build/bin
Build config: +assertions

Originally reported in #118137 (comment), this is minimized version.

Metadata

Metadata

Assignees

Labels

clang:modulesC++20 modules and Clang Header Modules

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions