Re: [genmatch] reject duplicate captures used as arguments in user-defined predicates

2016-03-29 Thread Richard Biener
On Tue, 29 Mar 2016, Prathamesh Kulkarni wrote: > Hi, > I suppose we should reject duplicate captures used as "arguments" in user > defined predicates ? > eg: > (match (foo @0 @0) > match-template) > The attached patch prints error "duplicate capture id" for above pattern. > Bootstrapped+tested

[genmatch] reject duplicate captures used as arguments in user-defined predicates

2016-03-29 Thread Prathamesh Kulkarni
Hi, I suppose we should reject duplicate captures used as "arguments" in user defined predicates ? eg: (match (foo @0 @0) match-template) The attached patch prints error "duplicate capture id" for above pattern. Bootstrapped+tested on x86_64-pc-linux-gnu. Ok for trunk ? Thanks, Prathamesh diff -