r276059 - in /trunk/gcc: cp/ChangeLog cp/call.c...
jason@gcc.gnu.org
jason@gcc.gnu.org
Mon Sep 23 17:48:00 GMT 2019
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
More information about the Gcc-cvs
mailing list