https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93710
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>: https://gcc.gnu.org/g:eef65c474e6836cc0470eb84f28895050161fcb8 commit r10-6657-geef65c474e6836cc0470eb84f28895050161fcb8 Author: Marek Polacek <pola...@redhat.com> Date: Wed Feb 12 14:00:51 2020 -0500 c++: Fix poor diagnostic for array initializer [PR93710] A small improvement for an error in build_user_type_conversion_1: instead of array-init1.C:11:1: error: conversion from ‘long int’ to ‘A’ is ambiguous 11 | }; | ^ we will print array-init1.C:8:3: error: conversion from ‘long int’ to ‘A’ is ambiguous 8 | 0L, | ^~ 2020-02-12 Marek Polacek <pola...@redhat.com> PR c++/93710 - poor diagnostic for array initializer. * call.c (build_user_type_conversion_1): Use cp_expr_loc_or_input_loc for an error call. * g++.dg/diagnostic/array-init1.C: New test.