Is this really the right error message?

Gabriel Dos Reis gdr@integrable-solutions.net
Fri Nov 24 14:02:00 GMT 2006


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



More information about the Gcc mailing list