bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #49841] flavor() function incorrectly shows function parameters as


From: Michael Builov
Subject: [bug #49841] flavor() function incorrectly shows function parameters as defined.
Date: Sun, 25 Jun 2017 14:05:10 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0

Follow-up Comment #1, bug #49841 (project make):

> It appears that the scope of the parameters in the outer function intrudes
into the inner function for the flavor() function but not for the value of the
parameter. 

The origin() function is also affected.


When inner function takes less arguments than the outer one, make hides
"extra" arguments of outer scope by defining them with empty values in the
scope of inner function.

Moreover, these "hidden" arguments are automatic, so can't be redefined, for
example by $(eval 2:=aaa)

This looks like inconsistency - behavior of inner function depends on the
number of arguments of outer one.

May be better solution will be - instead of defining fake arguments in context
of inner function, just forbid looking up arguments in outer scope?

The patch (against git repository) is attached.

(file #41043)
    _______________________________________________________

Additional Item Attachment:

File name: gnu-make-git-49841.patch       Size:7 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49841>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]