[Bug middle-end/126912] Match vs compare simplifications

"pinskia at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126912

--- Comment #4 from Drea Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Drea Pinski from comment #3)
> Created attachment 65350 [details]
> Patch which I am testing
> 
> I have to look into the internals manual to see if there is anything that
> needs to be updated here.  But this seems to work. There is no extra checks
> that just says the c_expr here can only be a tcc_comparison in the generated
> code; this is something which I am thinking about adding. Because I assume
> it is in genmatch when it comes to the type.

I have one bug in parser::parse_operation where I should have moved the
initialization of opt_grp in front of the id_tok->type == CPP_OPEN_BRACE check.
Without that you get a "random" rejection.  I am testing with the fix.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.