On 2017.10.13 at 12:02 -0400, Jason Merrill wrote: > On Fri, Oct 13, 2017 at 5:40 AM, Markus Trippelsdorf > <mar...@trippelsdorf.de> wrote: > > r253266 introduced a bogus "cannot bind bitfield" error that breaks > > building Chromium and Node.js. > > Fix by removing the ugly goto. > > > > Tested on ppc64le. > > Ok for trunk? > > No, this just undoes my change, so we go back to not doing type > checking for non-dependent static casts. Better I think to avoid the > call to build_static_cast in the first place, by teaching > stabilize_reference that it can return a NON_DEPENDENT_EXPR unchanged. > How does this (untested) patch work for you?
It works fine. Thanks. It would be good to have a testcase that checks the type checking for non-dependent static casts. I'll let you handle the current issue. -- Markus