MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0013387 | CMake | CMake | public | 2012-07-09 12:13 | 2015-07-08 08:57 | |||||
Reporter | Clinton Stimpson | |||||||||
Assigned To | Stephen Kelly | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | closed | Resolution | duplicate | |||||||
Platform | OS | OS Version | ||||||||
Product Version | ||||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0013387: ARGV1 scope leak | |||||||||
Description | ARGV1 values can leak into sub functions if they are optional arguments. | |||||||||
Steps To Reproduce | cmake_minimum_required(VERSION 2.8) function(bar arg) set(bar_arg ${ARGV1}) message("bar_arg=${bar_arg}") endfunction() function(foo arg) set(foo_arg "${ARGV1}") message("foo_arg=${foo_arg}") bar(${arg}) endfunction() foo(dummy dummy2) ======== bar() was called with 1 argument, not 2. But the ARGV1 from foo() leaked into the ARGV1 of bar(). | |||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2012-07-09 12:13 | Clinton Stimpson | New Issue | ||||||||
2012-07-09 12:19 | Clinton Stimpson | Note Added: 0030004 | ||||||||
2012-07-09 12:47 | Mike McQuaid | Note Added: 0030007 | ||||||||
2012-07-09 13:33 | Rolf Eike Beer | Relationship added | duplicate of 0013187 | |||||||
2015-02-26 14:06 | Stephen Kelly | Note Added: 0038082 | ||||||||
2015-02-26 14:06 | Stephen Kelly | Status | new => resolved | |||||||
2015-02-26 14:06 | Stephen Kelly | Resolution | open => duplicate | |||||||
2015-02-26 14:06 | Stephen Kelly | Assigned To | => Stephen Kelly | |||||||
2015-07-08 08:57 | Robert Maynard | Note Added: 0039071 | ||||||||
2015-07-08 08:57 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|