forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang][msvc] Split class declaration and constexpr variable definiti…
…on. 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
- Loading branch information
1 parent
542db87
commit 207d449
Showing
3 changed files
with
45 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters