diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-06-20 03:00:05 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-06-20 03:00:05 +0000 |
commit | 37a84f653c196aa0b73fad96707175a62dcb6a12 (patch) | |
tree | 2ef6473716e61293418bdb13bb2d46a236d8167d /include/clang/Basic/DiagnosticASTKinds.td | |
parent | 87c29321c4b819d8a10f362f42fb7f7226820041 (diff) |
PR16377: Allow evaluation of statement expressions in constant evaluation,
why not. Apparently GCC supports this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184396 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticASTKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticASTKinds.td | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/clang/Basic/DiagnosticASTKinds.td b/include/clang/Basic/DiagnosticASTKinds.td index f560069189..919245eccc 100644 --- a/include/clang/Basic/DiagnosticASTKinds.td +++ b/include/clang/Basic/DiagnosticASTKinds.td @@ -39,7 +39,7 @@ def note_constexpr_non_global : Note< "%select{pointer|reference}0 to %select{|subobject of }1" "%select{temporary|%3}2 is not a constant expression">; def note_constexpr_uninitialized : Note< - "subobject of type %0 is not initialized">; + "%select{|sub}0object of type %1 is not initialized">; def note_constexpr_array_index : Note<"cannot refer to element %0 of " "%select{array of %2 elements|non-array object}1 in a constant expression">; def note_constexpr_float_arithmetic : Note< @@ -126,6 +126,9 @@ def note_constexpr_access_static_temporary : Note< def note_constexpr_modify_global : Note< "a constant expression cannot modify an object that is visible outside " "that expression">; +def note_constexpr_stmt_expr_unsupported : Note< + "this use of statement expressions is not supported in a " + "constant expression">; def note_constexpr_calls_suppressed : Note< "(skipping %0 call%s0 in backtrace; use -fconstexpr-backtrace-limit=0 to " "see all)">; |