--- 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
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
--- 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
--- 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
--
What|Removed |Added
Attachment #9301|application/octet-stream|text/plain
mime type||
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22549
--- 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