Subject: Re: bin/36444: flex generates bad C++ code
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Michael van Elst <mlelstv@serpens.de>
List: netbsd-bugs
Date: 06/05/2007 15:20:03
The following reply was made to PR bin/36444; it has been noted by GNATS.

From: Michael van Elst <mlelstv@serpens.de>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: bin/36444: flex generates bad C++ code
Date: Tue, 5 Jun 2007 17:17:46 +0200

 On Tue, Jun 05, 2007 at 03:00:14PM +0000, Christos Zoulas wrote:
 >  The problem should be fixed by changing:
 >   	unsigned long size;
 
 This can't be changed, but you can cast the value to yy_size_t
 when passing it to yy_scan_bytes.
 
 >  We could add a few more yy_scan_bytes() functions so that we have explicit
 >  matches for unsigned long and long, but it is not worth the trouble. Passing
 >  a long where an int is expected is not a good practice anyway.
 
 What problem is this function overloading trying to solve?
 
 -- 
                                 Michael van Elst
 Internet: mlelstv@serpens.de
                                 "A potential Snark may lurk in every tree."