[clang] [C2y] Correctly handle 0 in the preprocessor (PR #137844)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 29 09:53:10 PDT 2025


================
@@ -1420,7 +1420,7 @@ void NumericLiteralParser::ParseNumberStartingWithZero(SourceLocation TokLoc) {
   }
 
   // Parse a potential octal literal prefix.
-  bool SawOctalPrefix = false;
+  bool SawOctalPrefix = false, IsNakedZero = false;
----------------
erichkeane wrote:

```suggestion
  bool SawOctalPrefix = false, IsSingleZero = false;
```

https://github.com/llvm/llvm-project/pull/137844


More information about the cfe-commits mailing list