commit | e480eeb9b166b68b9d74a0ca95470d9504efcf52 | [log] [tgz] |
---|---|---|
author | Peter Klausler <35819229+klausler@users.noreply.github.com> | Mon Apr 08 11:55:03 2024 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Apr 08 12:00:45 2024 -0700 |
tree | 1eba699a23be582a0d4f91f1b23c2b91b0b4605b | |
parent | 5ac93db170ca691260f04c45e27005d5450dd54a [diff] |
[flang] Improve error message with declaration (#87294) When a program attempts to use a non-object entity as the base of a component reference or type parameter inquiry, the message is somewhat uninformative and the position of the entity's declaration will not reflect any updates made to the symbol during name resolution. Includes some NFC C++17 style clean-up on some code noticed while debugging (missing mandatory braces). GitOrigin-RevId: aace1e1719a1610ce9fa93c7dae38a4272d7b6bf
Flang is a ground-up implementation of a Fortran front end written in modern C++. It started off as the f18 project (https://github.com/flang-compiler/f18) with an aim to replace the previous flang project (https://github.com/flang-compiler/flang) and address its various deficiencies. F18 was subsequently accepted into the LLVM project and rechristened as Flang.
Please note that flang is not ready yet for production usage.
Read more about flang in the docs directory. Start with the compiler overview.
To better understand Fortran as a language and the specific grammar accepted by flang, read Fortran For C Programmers and flang's specifications of the Fortran grammar and the OpenMP grammar.
Treatment of language extensions is covered in this document.
To understand the compilers handling of intrinsics, see the discussion of intrinsics.
To understand how a flang program communicates with libraries at runtime, see the discussion of runtime descriptors.
If you're interested in contributing to the compiler, read the style guide and also review how flang uses modern C++ features.
If you are interested in writing new documentation, follow LLVM's Markdown style guide.
Consult the Getting Started with Flang for information on building and running flang.