C++ PATCH for c++/90124 - bogus error with incomplete type in decltype

Jason Merrill jason@redhat.com
Wed Apr 17 17:57:00 GMT 2019


On Wed, Apr 17, 2019 at 10:45 AM Marek Polacek <polacek@redhat.com> wrote:
>
> This fixes a recent P1.  Here we were giving the "invalid use of incomplete
> type" error, but "the operand of the decltype specifier is an unevaluated operand"
> and so the objects it names are not required to have a definition.
>
> Bootstrapped/regtested on x86_64-linux, ok for trunk?
>
> 2019-04-17  Marek Polacek  <polacek@redhat.com>
>
>         PR c++/90124 - bogus error with incomplete type in decltype.
>         * typeck.c (build_class_member_access_expr): Check
>         cp_unevaluated_operand.

OK, thanks.

Jason



More information about the Gcc-patches mailing list