[all-commits] [llvm/llvm-project] b1e109: [flang] Downgrade an error to a warning for specif...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Fri Aug 29 07:49:54 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b1e109064cf53621408662b2cebfbd70bbcd501b
https://github.com/llvm/llvm-project/commit/b1e109064cf53621408662b2cebfbd70bbcd501b
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2025-08-29 (Fri, 29 Aug 2025)
Changed paths:
M flang/include/flang/Semantics/tools.h
M flang/lib/Semantics/expression.cpp
M flang/lib/Semantics/tools.cpp
M flang/test/Semantics/c_loc01.f90
Log Message:
-----------
[flang] Downgrade an error to a warning for specific circumstances (#155675)
We emit an error on the component name in the structure constructor
"__builtin_c_ptr(__address=0)", which is the value of "c_ptr_null()",
because the component name "__address" is PRIVATE to an intrinsic
module. The error is specifically omitted, however, when the name
appears in a module file, since it's what we emit for "c_ptr_null()" in
initializers.
This patch carves out another exception -- downgrading the error to a
warning -- for the case of a PRIVATE component name in a structure
constructor from an intrinsic module when the structure constructor
appears in a module. This case arises when module files are being
reprocessed as Fortran source in order to convert them to hermetic
module files.
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