---

** [bugs:#148] Wrong parameter name substitution**

**Status:** open
**Group:** Bug
**Created:** Mon Aug 18, 2014 10:13 AM UTC by Oliver Schwahn
**Last Updated:** Mon Aug 18, 2014 10:13 AM UTC
**Owner:** nobody

If a function definition is followed by a function prototype that uses 
different names for parameters than the actual definition, CIL replaces the 
parameter names in the function head of the definition with the parameter names 
of the prototype. CIL only behaves this way if the `--keepunused` option is 
used, which is off per default.

Please see the following example...

### input: ###

    int foo(int a, int b)
    {
       return a + b;
    }
    int foo(int aa, int bb);

-------------------------------

### CIL output ###

    int foo(int aa , int bb )
    {
       {
       return (a + b);
    }
    }

-------------------------------

This behavior was observed with the develop branch version of CIL (1.7.3+).



---

Sent from sourceforge.net because cil-users@lists.sourceforge.net is subscribed 
to https://sourceforge.net/p/cil/bugs/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/cil/admin/bugs/options.  Or, if this is a mailing 
list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users

Reply via email to