Issue 52924
Summary clang-14 C parser does not accept integer constant 1E6L
Labels new issue
Assignees
Reporter ErichLoew
    Compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project.git 946eb7a037d5f83ea9cdc99bac0f939ddd344e09)
          Target: x86_64-unknown-linux-gnu
          Thread model: posix
Kernel:   5.15.11 vanilla
Module:   source/drivers/power/reset/ltc2952-poweroff.c
Method:   ltc2952_poweroff_default(struct ltc2952_poweroff *data)
Observations:
  --> Compiles fine with "gcc (GCC) 11.2.0" without changes of source code
  --> clang 14.0.0 fails on original source code --> source code mitigation changes are required.
Mitigation for clang 14.0.0:
  --> Change "1E6L" to "1000000L"
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to