This is an archive of the discontinued LLVM Phabricator instance.

C++11 Compatibility - OpenMP constant expressions
ClosedPublic

Authored by tigerleapgorge on Feb 2 2017, 5:20 PM.

Details

Summary

I am continuing to make Lit tests C++11 compatible.
This patch is a subset of the previous 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 *'

Diff Detail

Repository
rL LLVM

Event Timeline

tigerleapgorge created this revision.Feb 2 2017, 5:20 PM
This revision is now accepted and ready to land.Feb 2 2017, 11:32 PM
This revision was automatically updated to reflect the committed changes.