http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60522
--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- (In reply to Mikael Morin from comment #3) > BLOCK constructs are not allowed inside WHERE constructs. > Thus, the "common function optimization" should not create a BLOCK to hold > the temporary variables, at least not inside WHERE. Possible. > Another possible fix, the following patch disables the optimization inside > WHERE. Not preferred, I'd like to continue the optimization. I'll take a look.