Re: [CIL users] CIL issues with functions and prototypes

2014-08-15 Thread Gabriel Kerneis
On Fri, Aug 15, 2014 at 09:50:41PM +0200, Gabriel Kerneis wrote: > This is a bug. Could you please submit it on github or sourceforge so > that I don't forget about it? Well, maybe it's not in fact. I'll have to check the standard. But I would appreciate a report anyway. Thanks, -- Gabriel

Re: [CIL users] CIL issues with functions and prototypes

2014-08-15 Thread Gabriel Kerneis
On Fri, Aug 15, 2014 at 06:10:45PM +0200, Oliver Schwahn wrote: > input: > -- > int foo(int a, int b) > { > return a + b; > } > int foo(int aa, int bb); > -- > > CIL output > -- > int foo(int aa , int bb ) > { > { > retu

[CIL users] CIL issues with functions and prototypes

2014-08-15 Thread Oliver Schwahn
Hi, I just noticed that CIL (the git develop branch version) messes up functions if the function definition is followed by a function prototype that uses different names for parameters. CIL replaces the actual function parameter names with the parameter names of the prototype. Please see the f