Issue 136608
Summary [clang-cl] Cannot compile a nested struct with member named `std::string Name;`
Labels new issue
Assignees
Reporter Nemirtingas
    Hi,

I encountered an issue where clang-cl and clang couldn't compile some code, I Attached reproductible source. 
If I remove `std::string name;` from `Struct2_t`, it compiles.

You can compile this code using my docker image: `nemirtingas/windowscross_vcpkg:msvc2022_14.40.33807_win10.0.18362.0_clang18`, this issue is about clang 19 but I first discovered it in clang 18 and the issue seems to be the same.

[main.zip](https://github.com/user-attachments/files/19840025/main.zip)
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to