[bug #64185] *** only one 'else' per conditional. Stop. due to else in recipe

2023-05-27 Thread Dmitry Goncharov
Follow-up Comment #11, bug #64185 (project make): > If someone has a thought of something this might break (other than people indenting their conditionals with the recipe prefix) please let me know See https://savannah.gnu.org/bugs/index.php?64259

[bug #64185] *** only one 'else' per conditional. Stop. due to else in recipe

2023-05-22 Thread Paul D. Smith
Update of bug #64185 (project make): Status:None => Fixed Assigned to:None => psmith Open/Closed:Open => Closed Operating System:

[bug #64185] *** only one 'else' per conditional. Stop. due to else in recipe

2023-05-22 Thread Paul D. Smith
Follow-up Comment #9, bug #64185 (project make): I agree that this is simply a bug. There are definitely places where it's impossible to "do the right thing" with relation to GNU Make's conditionals, because there is no easy way to tell them apart from non-conditional statements (this is the

[bug #64185] *** only one 'else' per conditional. Stop. due to else in recipe

2023-05-22 Thread Harry Clauson
Follow-up Comment #8, bug #64185 (project make): Sorry, the first excerpt should read as follows: all: ifdef blah junk: else else endif ___ Reply to this item at:

[bug #64185] *** only one 'else' per conditional. Stop. due to else in recipe

2023-05-22 Thread Harry Clauson
Follow-up Comment #7, bug #64185 (project make): I often remind developers that “the tail does not wag the dog”, in the same way that the current behavior of the code does not define correctness. While you keep explaining what the parser is currently doing, what I am reporting is that this is

[bug #64185] *** only one 'else' per conditional. Stop. due to else in recipe

2023-05-14 Thread Harry Clauson
Follow-up Comment #5, bug #64185 (project make): In addition, section 7.2 "Syntax of Conditionals" states: "Extra spaces are allowed and ignored at the beginning of the conditional directive line, but a tab is not allowed. (If the line begins with a tab, it will be considered part of a recipe

[bug #64185] *** only one 'else' per conditional. Stop. due to else in recipe

2023-05-14 Thread Harry Clauson
Follow-up Comment #4, bug #64185 (project make): Maybe I'm missing something here but, as I reported this issue, the recipe else is handled correctly (that is, it is not recognized as a make else within the recipe). The error is caused not by the else in the recipe, but when adding the $(warning

[bug #64185] *** only one 'else' per conditional. Stop. due to else in recipe

2023-05-14 Thread Paul D. Smith
Update of bug #64185 (project make): Item Group: Bug => Enhancement ___ Follow-up Comment #3: I agree that due to parsing limitations it's very difficult to manage this as make's keywords are

[bug #64185] *** only one 'else' per conditional. Stop. due to else in recipe

2023-05-13 Thread Dmitry Goncharov
Follow-up Comment #2, bug #64185 (project make): It is also necessary to ignore rule definitions in the branches which are not taken from the point of view of correctness. all: hello.tsk hello=1 ifdef hello hello.tsk:; echo true else hello.tsk:; echo false endif Here, we need the 'echo true'

[bug #64185] *** only one 'else' per conditional. Stop. due to else in recipe

2023-05-13 Thread Dmitry Goncharov
Follow-up Comment #1, bug #64185 (project make): The same behavior can be demonstrated with the following makefile ifdef blah junk: else else endif The parser does not perform variable expansion and ignores rule definitions in conditional branches which are not taken to avoid redundant

[bug #64185] *** only one 'else' per conditional. Stop. due to else in recipe

2023-05-11 Thread Harry Clauson
URL: Summary: *** only one 'else' per conditional. Stop. due to else in recipe Group: make Submitter: harryc Submitted: Fri 12 May 2023 02:04:16 AM UTC Severity: 3 - Normal