[all-commits] [llvm/llvm-project] f482b9: [C2y] Handle FP-suffixes on prefixed octals (#1412...

Naveen Seth Hanig via All-commits all-commits at lists.llvm.org
Fri Jun 6 00:47:56 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f482b9677eb8e6f1b12ec74225dfe0d3c78ec854
      https://github.com/llvm/llvm-project/commit/f482b9677eb8e6f1b12ec74225dfe0d3c78ec854
  Author: Naveen Seth Hanig <naveen.hanig at outlook.com>
  Date:   2025-06-06 (Fri, 06 Jun 2025)

  Changed paths:
    M clang/lib/Lex/LiteralSupport.cpp
    M clang/test/C/C2y/n3353.c

  Log Message:
  -----------
  [C2y] Handle FP-suffixes on prefixed octals (#141230) (#141695)

Fixes https://github.com/llvm/llvm-project/issues/141230.

Currently, prefixed octal literals used with floating-point suffixes are
not
rejected, causing Clang to crash.
This adds proper handling to reject invalid literals such as `0o0.1` or
`0.0e1`.

No release note because this is fixing an issue with a new change.



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