Hello,

I would like to know if this is normal, though it seems to be a BUG. Given this makefile:

.SUFFIXES:
.PHONY : rule

r:=bau
i:=b
rule:
 @echo @$(if $(findstring $i,$r), T , F )@

the result of running "make" on it is:"@ T @"
However, if we change the value of $i by replacing the 5th line with:
i:=bu
the displayed result is NOT as expected, "@ F @", but "Segmentation fault (core dumped)".

This is valid for

GNU Make version 3.78.1, by Richard Stallman and Roland McGrath.
Built for i386-redhat-linux-gnu
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
 Free Software Foundation, Inc.
running on Red Hat Linux 6.2, Pentium II processor.

alexandru

PS: I've noticed the 3.79.1 works as expected, but decided to send the mail, still...
 

Reply via email to