From b72227faec6ac8aa78d1cc230d8d575c874f36a4 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 15 Nov 2013 21:08:45 +0000 Subject: [PATCH] Fix bogus diagnostic wording. There's no such thing as a compound expression. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194849 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/DiagnosticParseKinds.td | 4 ++-- test/Parser/pragma-fp-contract.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/clang/Basic/DiagnosticParseKinds.td b/include/clang/Basic/DiagnosticParseKinds.td index f4b6cb81f8..b895f3337a 100644 --- a/include/clang/Basic/DiagnosticParseKinds.td +++ b/include/clang/Basic/DiagnosticParseKinds.td @@ -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">; diff --git a/test/Parser/pragma-fp-contract.c b/test/Parser/pragma-fp-contract.c index 568c0a0a88..c80c140ea7 100644 --- a/test/Parser/pragma-fp-contract.c +++ b/test/Parser/pragma-fp-contract.c @@ -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 } -- 2.49.0