This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: genautomata.c bug
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Aaron Gray'" <angray at beeb dot net>, <gcc at gcc dot gnu dot org>
- Date: Mon, 14 May 2007 12:32:38 +0100
- Subject: RE: genautomata.c bug
- References: <1ec701c794c0$1161eb10$0200a8c0@AMD2500>
On 12 May 2007 19:05, Aaron Gray wrote:
> I think I have found some bugs in genautomata.c
>
> regexp = create_node( sizeof( struct decl));
>
> I believe this should be :-
>
> regexp = create_node( sizeof( struct regexp));
>
> Lines :-
>
> 1546
> 1551
>
> Compare with :-
>
> 1576
>
> Aaron
Looks like you're right to me. We get away with it because a decl is larger
than a regexp. Testing a patch now.
cheers,
DaveK
--
Can't think of a witty .sigline today....