[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
Fri Jan 9 05:17:06 PST 2026


================
@@ -1,10 +1,18 @@
 ! RUN: %python %S/test_errors.py %s %flang_fc1
-!ERROR: Symbol has a BIND(C) name that is not a valid C language identifier
 subroutine bang() bind(C,name='!')
 end
-!ERROR: Symbol has a BIND(C) name that is not a valid C language identifier
+!ERROR: Symbol has a BIND(C) name containing non-visible ASCII character(s)
 subroutine cr() bind(C,name=achar(13))
 end
-!ERROR: Symbol has a BIND(C) name that is not a valid C language identifier
+!! depending on used assembler it can be threated as error or not
----------------
eugeneepshteyn wrote:

LLVM post-commit buildbot tests run in all sorts of environments. I don't think the test should set itself up for possibly failing in some environment.

https://github.com/llvm/llvm-project/pull/172457


More information about the flang-commits mailing list