C++ PATCH to forbid use of bool with the ++ operator
Jason Merrill
jason@redhat.com
Wed Sep 21 19:52:00 GMT 2016
On Wed, Sep 14, 2016 at 1:38 PM, Jason Merrill <jason@redhat.com> wrote:
>> * c-c++-common/gomp/atomic-12.c: Use -Wno-deprecated.
>> * c-c++-common/gomp/atomic-13.c: Likewise.
>> * c-c++-common/gomp/atomic-14.c: Likewise.
>> * g++.dg/cpp1y/lambda-init11.C: Remove invalid code.
>> * g++.dg/cpp1z/bool-increment1.C: New test.
>> * c-c++-common/pr60439.c: Add dg-warning.
>> * g++.dg/expr/bitfield4.C: Likewise.
>> * g++.dg/expr/bitfield5.C: Likewise.
>> * g++.dg/expr/bitfield6.C: Likewise.
>> * g++.dg/expr/bool1.C: Likewise.
>> * g++.dg/expr/bool3.C: Likewise.
>> * g++.dg/expr/lval3.C: Likewise.
>> * g++.dg/expr/lval4.C: Likewise.
>> * g++.old-deja/g++.jason/bool5.C: Likewise.
>> * g++.dg/expr/bitfield3.C: Adjust dg-error.
>> * g++.dg/other/error18.C: Likewise.
>> * g++.dg/gomp/atomic-14.C: Likewise.
Many of these tests now break with -std=c++1z; try 'make check-c++1z' to see.
> FAIL: c-c++-common/gomp/atomic-12.c -std=gnu++1z (test for excess errors)
> FAIL: c-c++-common/gomp/atomic-13.c -std=gnu++1z (test for excess errors)
> FAIL: c-c++-common/gomp/atomic-14.c -std=gnu++1z (test for excess errors)
> FAIL: c-c++-common/pr60439.c -std=c++1z (test for excess errors)
> FAIL: c-c++-common/pr60439.c -std=c++1z (test for warnings, line 134)
> FAIL: g++.dg/expr/bitfield4.C -std=c++1z (test for excess errors)
> FAIL: g++.dg/expr/bitfield4.C -std=c++1z (test for warnings, line 17)
> FAIL: g++.dg/expr/bitfield4.C -std=c++1z (test for warnings, line 18)
> FAIL: g++.dg/expr/bitfield5.C -std=c++1z (test for excess errors)
> FAIL: g++.dg/expr/bitfield5.C -std=c++1z (test for warnings, line 11)
> FAIL: g++.dg/expr/bitfield5.C -std=c++1z (test for warnings, line 14)
> FAIL: g++.dg/expr/bitfield6.C -std=c++1z (test for excess errors)
> FAIL: g++.dg/expr/bitfield6.C -std=c++1z (test for warnings, line 10)
> FAIL: g++.dg/expr/bool1.C -std=c++1z (test for excess errors)
> FAIL: g++.dg/expr/bool1.C -std=c++1z (test for warnings, line 13)
> FAIL: g++.dg/expr/bool1.C -std=c++1z (test for warnings, line 14)
> FAIL: g++.dg/expr/bool3.C -std=c++1z (test for excess errors)
> FAIL: g++.dg/expr/bool3.C -std=c++1z (test for warnings, line 13)
> FAIL: g++.dg/expr/bool3.C -std=c++1z (test for warnings, line 14)
> FAIL: g++.dg/expr/lval3.C -std=c++1z (test for warnings, line 6)
> FAIL: g++.dg/expr/lval4.C -std=c++1z (test for excess errors)
> FAIL: g++.dg/expr/lval4.C -std=c++1z (test for warnings, line 6)
> FAIL: g++.old-deja/g++.jason/bool5.C -std=c++1z (test for excess errors)
> FAIL: g++.old-deja/g++.jason/bool5.C -std=c++1z (test for warnings, line 5)
> FAIL: g++.old-deja/g++.jason/bool5.C -std=c++1z (test for warnings, line 8)
More information about the Gcc-patches
mailing list