re PR c++/30277 (bit-field: wrong overload resolution)
authorJakub Jelinek <jakub@redhat.com>
Sat, 21 Sep 2019 21:54:38 +0000 (23:54 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 21 Sep 2019 21:54:38 +0000 (23:54 +0200)
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
gcc/testsuite/g++.dg/expr/bitfield14.C

index 36e0b2b96017ddf78084dd60cfdd98e334edf8ca..e7e62bf8bbe2fdf5ddc494fe7df0b3bf43dcb5d0 100644 (file)
@@ -1,3 +1,10 @@
+2019-09-21  Jakub Jelinek  <jakub@redhat.com>
+
+       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  <polacek@redhat.com>
 
        DR 2345 - Jumping across initializers in init-statements and conditions.
index 546af85ba1082e9ba3a5df5c218d7f21e73408b6..4bd6f1203b5cfaf7f0f4d0fd7e43ee58036b5b52 100644 (file)
@@ -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()