[all-commits] [llvm/llvm-project] bb23ac: [flang] Don't tokenize an exponent that isn't one ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Nov 21 10:49:16 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bb23ac65a1e25747231a10240e78c7ce336602bf
      https://github.com/llvm/llvm-project/commit/bb23ac65a1e25747231a10240e78c7ce336602bf
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2024-11-21 (Thu, 21 Nov 2024)

  Changed paths:
    M flang/lib/Parser/prescan.cpp
    A flang/test/Preprocessing/not-an-exponent.F90

  Log Message:
  -----------
  [flang] Don't tokenize an exponent that isn't one (#117061)

The character 'e' or 'd' (either case) shouldn't be tokenized as part of
a real literal during preprocessing if it is not followed by an
optionally-signed digit string. Doing so prevents it from being
recognized as a macro name, or as the start of one.

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



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