public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* error: arrays of functions are not meaningful
@ 2022-03-25 14:35 PICCA Frederic-Emmanuel
  2022-03-25 15:15 ` Segher Boessenkool
  0 siblings, 1 reply; 5+ messages in thread
From: PICCA Frederic-Emmanuel @ 2022-03-25 14:35 UTC (permalink / raw)
  To: gcc-help

Hello, I try to activate the gcc10 analyzer
but then I get this error message

hkl2.c: In function ‘trajectory_gen’:
hkl2.c:219:1: error: arrays of functions are not meaningful
  219 | generator_def(trajectory_gen, Engine, Trajectory, tconfig)

where generator_def comes from here

https://github.com/rustyrussell/ccan/blob/master/ccan/generator/generator.h

I try to find some information on internet but it is not clean to me what is the problem.

It compiles ok without the analyzer flag.

Thanks for considering

Frederic

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: error: arrays of functions are not meaningful
  2022-03-25 14:35 error: arrays of functions are not meaningful PICCA Frederic-Emmanuel
@ 2022-03-25 15:15 ` Segher Boessenkool
  2022-03-28  9:18   ` PICCA Frederic-Emmanuel
  0 siblings, 1 reply; 5+ messages in thread
From: Segher Boessenkool @ 2022-03-25 15:15 UTC (permalink / raw)
  To: PICCA Frederic-Emmanuel; +Cc: gcc-help

On Fri, Mar 25, 2022 at 03:35:27PM +0100, PICCA Frederic-Emmanuel wrote:
> Hello, I try to activate the gcc10 analyzer
> but then I get this error message
> 
> hkl2.c: In function ‘trajectory_gen’:
> hkl2.c:219:1: error: arrays of functions are not meaningful
>   219 | generator_def(trajectory_gen, Engine, Trajectory, tconfig)

https://gcc.gnu.org/PR94689 ?


Segher

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: error: arrays of functions are not meaningful
  2022-03-25 15:15 ` Segher Boessenkool
@ 2022-03-28  9:18   ` PICCA Frederic-Emmanuel
  2022-03-28 13:10     ` Segher Boessenkool
  0 siblings, 1 reply; 5+ messages in thread
From: PICCA Frederic-Emmanuel @ 2022-03-28  9:18 UTC (permalink / raw)
  To: Segher Boessenkool; +Cc: gcc-help


----- Segher Boessenkool <segher@kernel.crashing.org> a écrit :
> On Fri, Mar 25, 2022 at 03:35:27PM +0100, PICCA Frederic-Emmanuel wrote:
> > Hello, I try to activate the gcc10 analyzer
> > but then I get this error message
> > 
> > hkl2.c: In function ‘trajectory_gen’:
> > hkl2.c:219:1: error: arrays of functions are not meaningful
> >   219 | generator_def(trajectory_gen, Engine, Trajectory, tconfig)
> 
> https://gcc.gnu.org/PR94689 ?
> 

Hello, I checked and found that it works with gcc-11.

so it must be a bug in the gcc-10 implementation.

Cheers

Frederic

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: error: arrays of functions are not meaningful
  2022-03-28  9:18   ` PICCA Frederic-Emmanuel
@ 2022-03-28 13:10     ` Segher Boessenkool
  2022-03-28 13:15       ` PICCA Frederic-Emmanuel
  0 siblings, 1 reply; 5+ messages in thread
From: Segher Boessenkool @ 2022-03-28 13:10 UTC (permalink / raw)
  To: PICCA Frederic-Emmanuel; +Cc: gcc-help

On Mon, Mar 28, 2022 at 11:18:15AM +0200, PICCA Frederic-Emmanuel wrote:
> 
> ----- Segher Boessenkool <segher@kernel.crashing.org> a écrit :
> > On Fri, Mar 25, 2022 at 03:35:27PM +0100, PICCA Frederic-Emmanuel wrote:
> > > Hello, I try to activate the gcc10 analyzer
> > > but then I get this error message
> > > 
> > > hkl2.c: In function ‘trajectory_gen’:
> > > hkl2.c:219:1: error: arrays of functions are not meaningful
> > >   219 | generator_def(trajectory_gen, Engine, Trajectory, tconfig)
> > 
> > https://gcc.gnu.org/PR94689 ?
> > 
> 
> Hello, I checked and found that it works with gcc-11.
> 
> so it must be a bug in the gcc-10 implementation.

The patch that fixed this in GCC 10 was a rewrite of a large part of the
analyzer, so it is likely not suitable for backporting.


Segher

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: error: arrays of functions are not meaningful
  2022-03-28 13:10     ` Segher Boessenkool
@ 2022-03-28 13:15       ` PICCA Frederic-Emmanuel
  0 siblings, 0 replies; 5+ messages in thread
From: PICCA Frederic-Emmanuel @ 2022-03-28 13:15 UTC (permalink / raw)
  To: Segher Boessenkool; +Cc: gcc-help


----- Segher Boessenkool <segher@kernel.crashing.org> a écrit :
> On Mon, Mar 28, 2022 at 11:18:15AM +0200, PICCA Frederic-Emmanuel wrote:
> > 
> > ----- Segher Boessenkool <segher@kernel.crashing.org> a écrit :
> > > On Fri, Mar 25, 2022 at 03:35:27PM +0100, PICCA Frederic-Emmanuel wrote:
> > > > Hello, I try to activate the gcc10 analyzer
> > > > but then I get this error message
> > > > 
> > > > hkl2.c: In function ‘trajectory_gen’:
> > > > hkl2.c:219:1: error: arrays of functions are not meaningful
> > > >   219 | generator_def(trajectory_gen, Engine, Trajectory, tconfig)
> > > 
> > > https://gcc.gnu.org/PR94689 ?
> > > 
> > 
> > Hello, I checked and found that it works with gcc-11.
> > 
> > so it must be a bug in the gcc-10 implementation.
> 
> The patch that fixed this in GCC 10 was a rewrite of a large part of the
> analyzer, so it is likely not suitable for backporting.

I understand, this is just for record :)

Have a nice day

Fred

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-03-28 13:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-25 14:35 error: arrays of functions are not meaningful PICCA Frederic-Emmanuel
2022-03-25 15:15 ` Segher Boessenkool
2022-03-28  9:18   ` PICCA Frederic-Emmanuel
2022-03-28 13:10     ` Segher Boessenkool
2022-03-28 13:15       ` PICCA Frederic-Emmanuel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).