bugmake - Bugs: bug #49841, flavor() function incorrectly...

 
 

bug #49841: flavor() function incorrectly shows function parameters as defined.

Submitted by:  None
Submitted on:  Wed Dec 14 15:33:07 2016  
 
Severity: 3 - NormalItem Group: Bug
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: 4.2.1Operating System: POSIX-Based
Fixed Release: NoneTriage Status: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed Dec 14 15:33:07 2016, original submission:

This concerns the scope of function parameters when using the
flavor() function to see if they are defined.

Consider the following functions and subsequent calls:

inner =\
$(info 1F="$(flavor 1)" 1V="$(1)" 2F="$(flavor 2)" 2V="$(2)")
outer = $(call inner,one)

$(call outer,one)
$(call outer,one,two)

This will produce the following output with make-4.2.90

1F="simple" 1V="one" 2F="undefined" 2V=""
1F="simple" 1V="one" 2F="simple" 2V=""

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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup1