diff options
author | Jason Merrill <jason@redhat.com> | 2018-03-09 21:39:14 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-03-09 21:39:14 +0100 |
commit | 5f2440b05799cb854b8d4a7622d50d7abcfecb0f (patch) | |
tree | 07f5ca17c8a0e16251dc95db53e4faea704e967a /gcc/cp/expr.c | |
parent | 9d9a9a90ce25d3b2748df78e4ae05e0c74d0b671 (diff) | |
download | gcc-5f2440b05799cb854b8d4a7622d50d7abcfecb0f.zip gcc-5f2440b05799cb854b8d4a7622d50d7abcfecb0f.tar.gz gcc-5f2440b05799cb854b8d4a7622d50d7abcfecb0f.tar.bz2 |
re PR c++/84076 (Warning about objects through POD mistakenly claims the object is a pointer)
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.
From-SVN: r258397
Diffstat (limited to 'gcc/cp/expr.c')
0 files changed, 0 insertions, 0 deletions