[Bug c++/22549] Differing error messages depending on thelocality of a variable

2005-07-18 Thread theodore dot papadopoulo at sophia dot inria dot fr
--- Additional Comments From theodore dot papadopoulo at sophia dot inria dot fr 2005-07-18 15:26 --- Subject: Re: Differing error messages depending on thelocality of a variable On Mon, 2005-07-18 at 15:12 +, bangerth at dealii dot org wrote: > --- Additional Comments

Re: [Bug c++/22549] Differing error messages depending on thelocality of a variable

2005-07-18 Thread Theodore Papadopoulo
On Mon, 2005-07-18 at 15:12 +, bangerth at dealii dot org wrote: > --- Additional Comments From bangerth at dealii dot org 2005-07-18 15:12 > --- > I can see how this is happening, and I believe the compiler is correct. > Take this slight modification of the code: Sorry, it was ri

[Bug c++/22549] Differing error messages depending on thelocality of a variable

2005-07-18 Thread bangerth at dealii dot org
--- Additional Comments From bangerth at dealii dot org 2005-07-18 15:12 --- I can see how this is happening, and I believe the compiler is correct. Take this slight modification of the code: --- struct A { A(const char&); operator char(); }; extern

[Bug c++/22549] Differing error messages depending on thelocality of a variable

2005-07-18 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-18 15:09 --- I think the error message is fine for being different as there is no way to convert "const A" to char. Take the following reduced testcase: struct A { A(const char&); operator char(); /* We cannot

[Bug c++/22549] Differing error messages depending on thelocality of a variable

2005-07-18 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Attachment #9301|application/octet-stream|text/plain mime type|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22549

[Bug c++/22549] Differing error messages depending on thelocality of a variable

2005-07-18 Thread theodore dot papadopoulo at sophia dot inria dot fr
--- Additional Comments From theodore dot papadopoulo at sophia dot inria dot fr 2005-07-18 15:00 --- Created an attachment (id=9301) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9301&action=view) The two function should give the same error message!!! -- http://gcc.gnu.org/bu