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
Showing
gcc/testsuite/g++.dg/warn/Wformat-2.C
0 → 100644
Please
register
or
sign in
to comment