From 2cf9113b8141ed1a8543a59d7d58862af4c3d7b7 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 14 Sep 2018 08:55:09 +0000 Subject: [PATCH] update the doc to compare with gcc 4.9 instead of 4.2 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342212 91177308-0d34-0410-b5e6-96231b3b80d8 --- www/features.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/www/features.html b/www/features.html index 8fe1209e12..8a6ff48cb6 100755 --- a/www/features.html +++ b/www/features.html @@ -95,8 +95,11 @@ and making the wording as clear as possible.

GCC and Clang diagnostic:

-  $ gcc-4.2 -fsyntax-only t.c
-  t.c:7: error: invalid operands to binary + (have 'int' and 'struct A')
+  $ gcc-4.9 -fsyntax-only t.c
+  t.c: In function 'int f(int, int)':
+  t.c:7:39: error: invalid operands to binary + (have 'int' and 'struct A')
+     return y + func(y ? ((SomeA.X + 40) + SomeA) / 42 + SomeA.X : SomeA.X);
+                                         ^
   $ clang -fsyntax-only t.c
   t.c:7:39: error: invalid operands to binary expression ('int' and 'struct A')
     return y + func(y ? ((SomeA.X + 40) + SomeA) / 42 + SomeA.X : SomeA.X);
-- 
2.40.0