llvm-project/flang/lib
Michael Kruse 207d4499df [flang][msvc] Split class declaration and constexpr variable definition. NFC.
Msvc has trouble defining a struct/class and defining a constexpr symbol in the same declarator. It reports the following error:
```
basic-parsers.h(809): error C2131: expression did not evaluate to a constant
basic-parsers.h(809): note: failure was caused by call of undefined function or one not declared 'constexpr'
basic-parsers.h(809): note: see usage of 'Fortran::parser::OkParser::OkParser'
```

Fix the msvc compilation by splitting the two definitions into two separate declarators.

This patch is part of the series to [[ http://lists.llvm.org/pipermail/flang-dev/2020-July/000448.html | make flang compilable with MS Visual Studio ]].

Reviewed By: DavidTruby, klausler

Differential Revision: https://reviews.llvm.org/D85937
2020-08-22 15:05:48 -05:00
..
Common [flang] Use the Flang cmake-functions to add targets. 2020-04-16 15:51:30 +01:00
Decimal Remove unneeded RoundDefault enumerator, and fix spelling in comments 2020-08-03 16:14:24 -07:00
Evaluate [flang] Improve error messages for procedures in expressions 2020-08-18 10:47:55 -07:00
Lower [flang] Remove extra CMAKE_CXX_FLAGS in Lower and Optimizer 2020-08-07 10:21:54 -07:00
Optimizer [mlir] Remove the use of "kinds" from Attributes and Types 2020-08-18 16:20:14 -07:00
Parser [flang][msvc] Split class declaration and constexpr variable definition. NFC. 2020-08-22 15:05:48 -05:00
Semantics [flang] Fix assert on bad character kind 2020-08-22 10:11:38 -07:00
CMakeLists.txt [flang] A rework of the cmake build components for in and out of tree builds. 2020-03-26 18:17:04 +00:00