Re: Confusing location of error in source code

2023-09-01 Thread Alejandro Colomar via Gcc
Hi Jonathan, On 2023-09-01 08:49, Jonathan Wakely wrote: > On Thu, 31 Aug 2023, 17:05 Alejandro Colomar via Gcc, > wrote: > >> Hi! >> >> I've been confused for some time with a compilation error that >> pointed to a slightly-off location. I wasn't seeing that I used >> a temporary variable in a

Re: Confusing location of error in source code

2023-08-31 Thread Jonathan Wakely via Gcc
On Thu, 31 Aug 2023, 17:05 Alejandro Colomar via Gcc, wrote: > Hi! > > I've been confused for some time with a compilation error that > pointed to a slightly-off location. I wasn't seeing that I used > a temporary variable in a constant expression. The code could be > reduced to: > > $ cat cons