From e4df9be4e2bb9f379d2737282f765f1ef6d8d2dd Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sat, 21 Sep 2019 23:54:38 +0200 Subject: [PATCH] re PR c++/30277 (bit-field: wrong overload resolution) PR c++/30277 * g++.dg/expr/bitfield14.C (struct S): Use signed long long instead of signed long. (foo): Use long long instead of long. From-SVN: r276021 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/g++.dg/expr/bitfield14.C | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 36e0b2b9601..e7e62bf8bbe 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2019-09-21 Jakub Jelinek + + PR c++/30277 + * g++.dg/expr/bitfield14.C (struct S): Use signed long long instead + of signed long. + (foo): Use long long instead of long. + 2019-09-21 Marek Polacek DR 2345 - Jumping across initializers in init-statements and conditions. diff --git a/gcc/testsuite/g++.dg/expr/bitfield14.C b/gcc/testsuite/g++.dg/expr/bitfield14.C index 546af85ba10..4bd6f1203b5 100644 --- a/gcc/testsuite/g++.dg/expr/bitfield14.C +++ b/gcc/testsuite/g++.dg/expr/bitfield14.C @@ -3,10 +3,10 @@ struct S { - signed long l: 32; + signed long long l: 32; }; -void foo(long) = delete; +void foo(long long) = delete; void foo(int) {} int main() -- 2.30.2