Subject: bin/12251: make dumps core on unbalanced .if
To: None <gnats-bugs@gnats.netbsd.org>
From: None <wiz@netbsd.org>
List: netbsd-bugs
Date: 02/20/2001 12:46:37
>Number:         12251
>Category:       bin
>Synopsis:       make dumps core on unbalanced .if
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 20 03:43:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        2001/01/24
>Organization:
	
>Environment:
	
System: NetBSD klausner.inria.fr 1.5S NetBSD 1.5S (KRAFTLACKEL) #6: Sat Feb 17 12:54:54 CET 2001 wiz@klausner.inria.fr:/usr/src/sys/arch/macppc/compile/KRAFTLACKEL macppc
Architecture: powerpc
Machine: macppc
>Description:
make dumps core if it encounters any unbalanced .if (missing .endif).
>How-To-Repeat:

Use the following Makefile:

--- cut here
.if defined(ANYTHING)
a:
	echo anything
.else
a:
	echo nothing
#.endif
--- cut here

type 'make' and see a core dump.
>Fix:
None provided.
>Release-Note:
>Audit-Trail:
>Unformatted:
 Thomas Klausner