This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Is this really the right error message?
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Roberto Bagnara <bagnara at cs dot unipr dot it>
- Cc: gcc at gcc dot gnu dot org
- Date: 24 Nov 2006 01:05:41 +0100
- Subject: Re: Is this really the right error message?
- References: <4565FE43.4020503@cs.unipr.it>
Roberto Bagnara <bagnara@cs.unipr.it> writes:
| $ cat p.cc
| char c[2] = "a";
| char d[2] = c;
| $ g++ -c p.cc
| p.cc:2: error: cannot convert Âchar [2]Â to Âchar [2]Â in initialization
A good diagnostic would speak of assignment, but I lost that battle
some time ago.
-- Gaby