[all-commits] [llvm/llvm-project] f2b853: [C2y] Correctly handle 0 in the preprocessor (#137...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Wed Apr 30 03:55:41 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f2b8539803ea5887a9653d26cdcacaabd536ae1c
      https://github.com/llvm/llvm-project/commit/f2b8539803ea5887a9653d26cdcacaabd536ae1c
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2025-04-30 (Wed, 30 Apr 2025)

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

  Log Message:
  -----------
  [C2y] Correctly handle 0 in the preprocessor (#137844)

We do not diagnose 0 as a deprecated octal literal outside of the
preprocessor. This fixes a bug where we were accidentally diagnosing 0
from a preprocessor conditional, however.

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