PR c++/91809 - bit-field and ellipsis.
authorJason Merrill <jason@redhat.com>
Mon, 23 Sep 2019 17:48:00 +0000 (13:48 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 23 Sep 2019 17:48:00 +0000 (13:48 -0400)
commit33ba6ac3912614d2e2c5bb1bad2f4f069525e700
treea4484a7075b47ffc96663cea3b6083ede11733b2
parent1a09197cb1bc05a71d1866d1220937289da02c5e
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.

From-SVN: r276059
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/overload/ellipsis4.C [new file with mode: 0644]