[all-commits] [llvm/llvm-project] 9702ec: [flang] Fixed regression with CDEFINED linkage (#1...
Eugene Epshteyn via All-commits
all-commits at lists.llvm.org
Mon Oct 27 15:26:29 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9702ec056b5509238353bff71c8f8bb664d95e4c
https://github.com/llvm/llvm-project/commit/9702ec056b5509238353bff71c8f8bb664d95e4c
Author: Eugene Epshteyn <eepshteyn at nvidia.com>
Date: 2025-10-27 (Mon, 27 Oct 2025)
Changed paths:
M flang/include/flang/Support/Fortran-features.h
M flang/lib/Semantics/resolve-names.cpp
M flang/test/Lower/cdefined.f90
M flang/test/Semantics/cdefined.f90
Log Message:
-----------
[flang] Fixed regression with CDEFINED linkage (#164616)
https://github.com/llvm/llvm-project/pull/162722 introduced a regression
that started creating initializers for CDEFINED variables. CDEFINED
variables cannot have initializers, because their storage is expected
come from elsewhere, likely outside of Fortran. Fixed the regression and
improved the regression test to catch the incorrect initialization case.
Also, based on the code review feedback, made CDEFINED variable
initialization a hard error and updated tests accordingly.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list