Issue 160303
Summary [AOCC/Flang] Parser Failure with Uppercase FORMAT Statement - 'Illegal hexadecimal constant' Error
Labels flang
Assignees
Reporter ZER0-auto
    The AOCC flang compiler fails to parse valid Fortran code when the `FORMAT` keyword is written in uppercase, throwing a misleading error about "illegal hexadecimal constant". The identical code compiles successfully when using lowercase `format`.

System Information
- CPU: AMD EPYC 7003 series  
- OS: Ubuntu 24.04
- Compiler: AOCC%5.0.0 flang
- Reproduction: 100% reproducible

Minimal Reproduction Code
```fortran
! test.f
 program minimal_test
      write(*, 100)
100   FORMAT(1X 'TEST')
      end program minimal_test

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to