[PATCH] D29480: C++11 Compatibility - OpenMP constant expressions
Charles Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 2 17:20:03 PST 2017
tigerleapgorge created this revision.
I am continuing to make Lit tests C++11 compatible.
This patch is a subset of the previous https://reviews.llvm.org/D20710
This patch contains 4 tests, the changes are nearly identical.
C++11 introduced constexpr, hence the change in diagnostics.
C++11 added 2 new Notes following the existing Warning.
Existing: error: expression is not an integral constant expression
C++11: note: non-constexpr function 'foobool' cannot be used in a constant expression
C++11: note: declared here
Change in Error message.
C++98: expression is not an integral constant expression
C++11: integral constant expression must have integral or unscoped enumeration type, not 'char *'
https://reviews.llvm.org/D29480
Files:
test/OpenMP/distribute_collapse_messages.cpp
test/OpenMP/ordered_messages.cpp
test/OpenMP/target_parallel_for_collapse_messages.cpp
test/OpenMP/target_parallel_for_ordered_messages.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29480.86925.patch
Type: text/x-patch
Size: 14840 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170203/d254e462/attachment-0001.bin>
More information about the cfe-commits
mailing list