Subject: bin/22119: lint segv on malformed function pointer cast
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nick@nthcliff.demon.co.uk>
List: netbsd-bugs
Date: 07/11/2003 10:02:36
>Number:         22119
>Category:       bin
>Synopsis:       lint segv on malformed function pointer cast
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 11 08:07:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Nick Hudson
>Release:        NetBSD 1.6.1_STABLE
>Organization:
>Environment:
System: NetBSD kenny 1.6.1_STABLE NetBSD 1.6.1_STABLE (KENNY) #0: Fri May 30 10:12:33 BST 2003 nick@kenny:/home/nick/work/netbsd/netbsd-1-6/src/sys/arch/i386/compile/KENNY i386
Architecture: i386
Machine: i386

Also exists in -current where I originally came across the problem;
>Description:
	As synopsis
>How-To-Repeat:
	Run lint on the following

	void
	func1(void)
	{
		void (*f1)(void);
	
		/*
	 	* f1 = (void (*)(void))p; is OK
	 	*/
		f1 = (void *()(void))p;
	}
>Fix:
	No idea.
>Release-Note:
>Audit-Trail:
>Unformatted: