[all-commits] [llvm/llvm-project] 058606: [Flang] Build fix without precompiled headers

Michael Kruse via All-commits all-commits at lists.llvm.org
Wed Jul 23 01:22:32 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0586067cf07bef0f04fd1dc7135a9b773ebaa07a
      https://github.com/llvm/llvm-project/commit/0586067cf07bef0f04fd1dc7135a9b773ebaa07a
  Author: Michael Kruse <llvm-project at meinersbur.de>
  Date:   2025-07-23 (Wed, 23 Jul 2025)

  Changed paths:
    M flang/lib/Semantics/canonicalize-omp.cpp

  Log Message:
  -----------
  [Flang] Build fix without precompiled headers

The header semantics.h is added implitly in the precompiled headers, but
the build was failing when precompiled headers are disabled (e.g.
using CMAKE_DISABLE_PRECOMPILE_HEADERS=ON):

```
../_src/flang/lib/Semantics/canonicalize-omp.cpp: In constructor ‘Fortran::semantics::CanonicalizationOfOmp::CanonicalizationOfOmp(Fortran::semantics::SemanticsContext&)’:
../_src/flang/lib/Semantics/canonicalize-omp.cpp:31:38: error: invalid use of incomplete type ‘class Fortran::semantics::SemanticsContext’
   31 |       : context_{context}, messages_{context.messages()} {}
      |                                      ^~~~~~~
In file included from ../_src/flang/lib/Semantics/canonicalize-omp.cpp:9:
../_src/flang/lib/Semantics/canonicalize-omp.h:17:7: note: forward declaration of ‘class Fortran::semantics::SemanticsContext’
   17 | class SemanticsContext;
      |       ^~~~~~~~~~~~~~~~
compilation terminated due to -fmax-errors=1.
```



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