RE: [EXTERNAL] Re: g++12 broke my system of overloaded operator<

2024-07-12 Thread Dalbey, Keith via Gcc
-Original Message- From: Andrew Pinski Sent: Friday, July 12, 2024 1:20 PM To: Dalbey, Keith Cc: Jonathan Wakely ; gcc@gcc.gnu.org Subject: Re: [EXTERNAL] Re: g++12 broke my system of overloaded operator<< On Fri, Jul 12, 2024 at 12:10 PM Dalbey, Keith via Gcc wrote: > >

Re: [EXTERNAL] Re: g++12 broke my system of overloaded operator<

2024-07-12 Thread Jonathan Wakely via Gcc
On Fri, 12 Jul 2024 at 20:08, Dalbey, Keith wrote: > > The means by which this FIX was implemented caused OTHER problems > > template > std::ostream& operator<<(std::ostream& os, const std::pair& pr) > { > os << "(" << pr.first << ", " << pr.second << ")"; > return os; > } > > Wil

Re: [EXTERNAL] Re: g++12 broke my system of overloaded operator<

2024-07-12 Thread Andrew Pinski via Gcc
On Fri, Jul 12, 2024 at 12:10 PM Dalbey, Keith via Gcc wrote: > > The means by which this FIX was implemented caused OTHER problems > > template > std::ostream& operator<<(std::ostream& os, const std::pair& pr) > { > os << "(" << pr.first << ", " << pr.second << ")"; > return os;

Re: [EXTERNAL] Re: g++12 broke my system of overloaded operator<

2024-07-12 Thread Jonathan Wakely via Gcc
On Fri, 12 Jul 2024 at 20:08, Dalbey, Keith wrote: > > The means by which this FIX was implemented caused OTHER problems > > template > std::ostream& operator<<(std::ostream& os, const std::pair& pr) > { > os << "(" << pr.first << ", " << pr.second << ")"; > return os; > } > > Wil

Re: [EXTERNAL] Re: g++12 broke my system of overloaded operator<

2024-07-12 Thread Jonathan Wakely via Gcc
On Fri, 12 Jul 2024 at 17:58, Dalbey, Keith via Gcc wrote: > > I'm not going to argue about the change for CONCRETE operators, I'm going to > argue about the loss of power/flexibility for TEMPLATED operators, because it > defeats the whole purpose of TEMPLATED functions/operators otherwise This

RE: [EXTERNAL] Re: g++12 broke my system of overloaded operator<

2024-07-12 Thread Dalbey, Keith via Gcc
The means by which this FIX was implemented caused OTHER problems template std::ostream& operator<<(std::ostream& os, const std::pair& pr) { os << "(" << pr.first << ", " << pr.second << ")"; return os; } Will only work for CONCRETE classes that take the place of "F" and "S" IFF

RE: [EXTERNAL] Re: g++12 broke my system of overloaded operator<

2024-07-12 Thread Dalbey, Keith via Gcc
albey, Keith Sent: Friday, July 12, 2024 10:58 AM To: Andrew Pinski Cc: gcc@gcc.gnu.org Subject: RE: [EXTERNAL] Re: g++12 broke my system of overloaded operator<< I'm not going to argue about the change for CONCRETE operators, I'm going to argue about the loss of power/flexibility fo

RE: [EXTERNAL] Re: g++12 broke my system of overloaded operator<

2024-07-12 Thread Dalbey, Keith via Gcc
I'm not going to argue about the change for CONCRETE operators, I'm going to argue about the loss of power/flexibility for TEMPLATED operators, because it defeats the whole purpose of TEMPLATED functions/operators otherwise I've attached the header file in question... it's mostly about outputtin