Issue |
123343
|
Summary |
[C++20] [Modules] Incorrect visibility for modules linkage in language linkage
|
Labels |
clang:modules
|
Assignees |
ChuanqiXu9
|
Reporter |
ChuanqiXu9
|
Reproducer:
```
// RUN: rm -rf %t
// RUN: split-file %s %t
// RUN: cd %t
//
// RUN: %clang_cc1 -std=c++20 %t/m.a.cppm -emit-module-interface -o %t/a.pcm
// RUN: %clang_cc1 -std=c++20 %t/m.b.cppm -fmodule-file=m:a=%t/a.pcm -fsyntax-only -verify
//--- m.a.cppm
export module m:a;
int a;
//--- m.b.cppm
module m:b;
import :a;
extern "C++" int get_a() { return a; }
```
We should accept it but we don't.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs