Author: sylvestre Date: Fri Sep 14 01:55:09 2018 New Revision: 342212 URL: http://llvm.org/viewvc/llvm-project?rev=342212&view=rev Log: update the doc to compare with gcc 4.9 instead of 4.2
Modified: cfe/trunk/www/features.html Modified: cfe/trunk/www/features.html URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/features.html?rev=342212&r1=342211&r2=342212&view=diff ============================================================================== --- cfe/trunk/www/features.html (original) +++ cfe/trunk/www/features.html Fri Sep 14 01:55:09 2018 @@ -95,8 +95,11 @@ and making the wording as clear as possi GCC and Clang diagnostic:</p> <pre> - $ <b>gcc-4.2 -fsyntax-only t.c</b> - t.c:7: error: invalid operands to binary + (have 'int' and 'struct A') + $ <b>gcc-4.9 -fsyntax-only t.c</b> + 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); + ^ $ <b>clang -fsyntax-only t.c</b> t.c:7:39: error: invalid operands to binary expression ('int' and 'struct A') <span style="color:darkgreen"> return y + func(y ? ((SomeA.X + 40) + SomeA) / 42 + SomeA.X : SomeA.X);</span> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits