]> granicus.if.org Git - clang/commitdiff
Fix bogus diagnostic wording. There's no such thing as a compound expression.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 15 Nov 2013 21:08:45 +0000 (21:08 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 15 Nov 2013 21:08:45 +0000 (21:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194849 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticParseKinds.td
test/Parser/pragma-fp-contract.c

index f4b6cb81f8c3e78b9befdaf2faeef1805bd6b2fc..b895f3337ac880f3cbb250652919bcf6ff3b8224 100644 (file)
@@ -797,8 +797,8 @@ def warn_pragma_unused_expected_punc : Warning<
   "expected ')' or ',' in '#pragma unused'">;
 // - #pragma fp_contract
 def err_pragma_fp_contract_scope : Error<
-  "'#pragma fp_contract' should only appear at file scope or at the start of a "
-  "compound expression">; 
+  "'#pragma fp_contract' can only appear at file scope or at the start of a "
+  "compound statement">; 
 // - #pragma comment
 def err_pragma_comment_malformed : Error<
   "pragma comment requires parenthesized identifier and optional string">;
index 568c0a0a88ba9d11044ad32bfb4fbb4b7532b533..c80c140ea71ff778977e359b2a5ccbfd0fb52082 100644 (file)
@@ -2,7 +2,7 @@
 
 void f1(void) {
   int x = 0;
-/* expected-error@+1 {{'#pragma fp_contract' should only appear at file scope or at the start of a compound expression}} */
+/* expected-error@+1 {{'#pragma fp_contract' can only appear at file scope or at the start of a compound statement}} */
 #pragma STDC FP_CONTRACT ON
 }