https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91809

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Sep 23 17:48:00 2019
New Revision: 276059

URL: https://gcc.gnu.org/viewcvs?rev=276059&root=gcc&view=rev
Log:
        PR c++/91809 - bit-field and ellipsis.

decay_conversion converts a bit-field access to its declared type, which
isn't what we want here; it even has a comment that the caller is expected
to have already used default_conversion to perform integral promotion.  This
function handles arithmetic promotion differently, but we still don't want
to call decay_conversion before that happens.

        * call.c (convert_arg_to_ellipsis): Don't call decay_conversion for
        arithmetic arguments.

Added:
    trunk/gcc/testsuite/g++.dg/overload/ellipsis4.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c

Reply via email to