[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #62540] refer/ref.cpp: comparison between two arrays is deprecated
From: |
Bjarni Ingi Gislason |
Subject: |
[bug #62540] refer/ref.cpp: comparison between two arrays is deprecated in C++20 |
Date: |
Sun, 29 May 2022 22:28:15 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?62540>
Summary: refer/ref.cpp: comparison between two arrays is
deprecated in C++20
Project: GNU troff
Submitted by: bjarniig
Submitted on: Mon 30 May 2022 02:28:13 AM UTC
Category: Core
Severity: 3 - Normal
Item Group: Lint
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Mon 30 May 2022 02:28:13 AM UTC By: Bjarni Ingi Gislason <bjarniig>
Subject: refer/ref.cpp: comparison between two arrays is deprecated in
C++20
Warning from gcc-12 (Debian 12.1.0-2) 12.1.0:
CXX src/preproc/refer/refer-ref.o
../src/preproc/refer/ref.cpp: In function 'int same_reference(const
reference&, const reference&)':
../src/preproc/refer/ref.cpp:539:24: warning: comparison between two arrays is
deprecated in C++20 [-Warray-compare]
539 | if (r1.field_index != r2.field_index)
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
../src/preproc/refer/ref.cpp:539:24: note: use unary '+' which decays operands
to pointers or '&'component_ref' not supported by dump_decl<declaration
error>[0] != &'component_ref' not supported by dump_decl<declaration
error>[0]' to compare the addresses
CXX src/preproc/refer/refer-refer.o
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62540>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #62540] refer/ref.cpp: comparison between two arrays is deprecated in C++20,
Bjarni Ingi Gislason <=