URL:
  <http://savannah.gnu.org/bugs/?46400>

                 Summary: *** missing separator, when expanding empty define'd
variable
                 Project: make
            Submitted by: None
            Submitted on: Sat 07 Nov 2015 08:24:43 PM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.1
        Operating System: MS Windows
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

When I run make-4.1 with the attached makefile I get the following error

bug7.mk:5: *** missing separator.  Stop.

This behavior looks inconsistent, because expanding variable D should give two
empty lines, which should then be ignored by make.
Such problem could be avoided by inserting a continue statement at
read.c:1509, as shown below.

      /* If the line doesn't begin with a tab, test to see if it introduces
         another define, or ends one.  Stop if we find an 'endef' */
      if (line[0] != cmd_prefix)
        {
          p = next_token (line);
          len = strlen (p);
          if (!len) continue; /* skip empty lines */




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 07 Nov 2015 08:24:43 PM UTC  Name: bug7.mk  Size: 20B   By: None
same behavior on Ubuntu
<http://savannah.gnu.org/bugs/download.php?file_id=35413>

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to