This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is this really the right error message?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]