[flang-commits] [flang] [flang] Allow extended char set in `BIND(C, name="...")` (PR #172457)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Tue Dec 16 07:09:04 PST 2025
================
@@ -3476,13 +3476,19 @@ void CheckHelper::CheckBindC(const Symbol &symbol) {
if (const std::string * bindName{symbol.GetBindName()};
bindName) { // has a binding name
if (!bindName->empty()) {
- bool ok{bindName->front() == '_' || parser::IsLetter(bindName->front())};
+ bool toolchain_error{bindName->front() == '.'};
+ if (toolchain_error) {
----------------
eugeneepshteyn wrote:
`toolchain_error` doesn't seem to be used again, so perhaps change this to `if (bindName->front() == '.') {`
https://github.com/llvm/llvm-project/pull/172457
More information about the flang-commits
mailing list