Subject: CVS commit: src/usr.bin/xlint/lint1
To: None <source-changes@netbsd.org>
From: Krister Walfridsson <kristerw@netbsd.org>
List: source-changes
Date: 05/18/2003 23:30:02
Module Name: src
Committed By: kristerw
Date: Sun May 18 23:30:02 UTC 2003
Modified Files:
src/usr.bin/xlint/lint1: cgram.y
Log Message:
Prevent use of stale pointer for determining return type of ({ })
expressions.
Details:
lint did fail on constructs like
struct foo *x;
x = ({ struct foo *y; /* do stuff */; y;});
since it gave the whole ({ }) the same structure representing the
type as y, but that structure is reclaimed when y goes out of scope.
To generate a diff of this commit:
cvs rdiff -r1.30 -r1.31 src/usr.bin/xlint/lint1/cgram.y
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.