]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/84076
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Mar 2018 20:39:14 +0000 (20:39 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Mar 2018 20:39:14 +0000 (20:39 +0000)
commit533f67f12b670c96333b0566d643f73fd54f1431
tree07f5ca17c8a0e16251dc95db53e4faea704e967a
parent5ea0f41734a6ab69a9756a118f567f69f62dd5f5
PR c++/84076
* call.c (convert_arg_to_ellipsis): Instead of cp_build_addr_expr
build ADDR_EXPR with REFERENCE_TYPE.
(build_over_call): For purposes of check_function_arguments, if
argarray[j] is ADDR_EXPR with REFERENCE_TYPE created above, use
its operand rather than the argument itself.

* g++.dg/warn/Wformat-2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@258397 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wformat-2.C [new file with mode: 0644]