https://gcc.gnu.org/g:b3fc9e7fc8ef080924f215941bb22e4bc94b15c3

commit r17-6600-gb3fc9e7fc8ef080924f215941bb22e4bc94b15c3
Author: James K. Lowden <[email protected]>
Date:   Fri Nov 20 13:55:00 2026 -0500

    cobol: Accept REDEFINES as part of TYPEDEF.
    
    gcc/cobol/ChangeLog:
    
            * symbols.cc (symbol_field): Match whether or not a typedef.

Diff:
---
 gcc/cobol/symbols.cc | 2 --
 1 file changed, 2 deletions(-)

diff --git a/gcc/cobol/symbols.cc b/gcc/cobol/symbols.cc
index a862211c633a..8ae1d0a1e166 100644
--- a/gcc/cobol/symbols.cc
+++ b/gcc/cobol/symbols.cc
@@ -3022,8 +3022,6 @@ symbol_field( size_t program, size_t parent, const char 
name[] )
       const auto& field = *cbl_field_of(&sym);
 
       if( parent > 0 && parent != field.parent ) return false;
-      if( field.is_typedef() ) return false;
-
       return 0 == strcasecmp(name, field.name);
     }
   };

Reply via email to