[Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-08-04 Thread sethml at google dot com
--- Additional Comments From sethml at google dot com 2005-08-05 03:43 --- The C++ working group examined this issue in April as core language issue 488: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#488 They tentatively concluded that type deduction should fail in this

[Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-08-04 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-05 03:48 --- Reopening to ... -- What|Removed |Added Status|RESOLVED

[Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-08-04 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-05 03:48 --- To suspend it as the DR is still in drafting. -- What|Removed |Added

[Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-08-04 Thread mark at codesourcery dot com
--- Additional Comments From mark at codesourcery dot com 2005-08-05 03:49 --- Subject: Re: error: 'anonymous enum' is/uses anonymous type' sethml at google dot com wrote: --- Additional Comments From sethml at google dot com 2005-08-05 03:43 --- The C++ working group

[Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-03-26 Thread bangerth at dealii dot org
--- Additional Comments From bangerth at dealii dot org 2005-03-26 22:53 --- Well, I wanted to give an inuitive reasoning. On the other hand, how do you propose to make up a unique name if an unnamed enum is used in two different translation units as a template argument? W. --

Re: [Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-03-26 Thread Gabriel Dos Reis
bangerth at dealii dot org [EMAIL PROTECTED] writes: | Well, I wanted to give an inuitive reasoning. I understood that; I just don't think they are conclusive :-) | On the other hand, how do you propose to make up a unique name if an | unnamed enum is used in two different translation units

[Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-03-26 Thread gdr at integrable-solutions dot net
--- Additional Comments From gdr at integrable-solutions dot net 2005-03-27 03:18 --- Subject: Re: error: 'anonymous enum' is/uses anonymous type' bangerth at dealii dot org [EMAIL PROTECTED] writes: | Well, I wanted to give an inuitive reasoning. I understood that; I just don't

[Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-03-25 Thread gdr at integrable-solutions dot net
--- Additional Comments From gdr at integrable-solutions dot net 2005-03-26 04:20 --- Subject: Re: error: 'anonymous enum' is/uses anonymous type' bangerth at dealii dot org [EMAIL PROTECTED] writes: | Intuitively, C++ treats unnamed enums differently than named ones, because | in

[Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-03-23 Thread caolanm at redhat dot com
--- Additional Comments From caolanm at redhat dot com 2005-03-23 11:53 --- The workaround is trivial. But I'm still confused as to what exactly causes gcc to treat unnamed enums so much differently that named ones. It would be great if I could get some clarity on this. I have a handful

[Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-03-23 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-23 16:57 --- (In reply to comment #4) The workaround is trivial. But I'm still confused as to what exactly causes gcc to treat unnamed enums so much differently that named ones. It would be great if I could get

[Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-03-23 Thread bangerth at dealii dot org
--- Additional Comments From bangerth at dealii dot org 2005-03-23 18:53 --- Intuitively, C++ treats unnamed enums differently than named ones, because in templates the function/class name has to be mangled, and will contain the name of the template arguments. If the template argument

[Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-03-23 Thread caolanm at redhat dot com
--- Additional Comments From caolanm at redhat dot com 2005-03-23 19:12 --- Sounds reasonable, but it's not the case that the compiler should just silently not consider anonymous enums as candidates for template argument matching ? --

[Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-03-23 Thread bangerth at dealii dot org
--- Additional Comments From bangerth at dealii dot org 2005-03-23 19:24 --- That has been subject to discussion (i.e. whether the attempt to use an unnamed enum as a template argument should just silently fail as a substitution failure). However, it has been decided that this is a

[Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-03-23 Thread mark at codesourcery dot com
--- Additional Comments From mark at codesourcery dot com 2005-03-23 19:28 --- Subject: Re: error: 'anonymous enum' is/uses anonymous type' bangerth at dealii dot org wrote: --- Additional Comments From bangerth at dealii dot org 2005-03-23 19:24 --- That has been subject

[Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-03-23 Thread bangerth at dealii dot org
--- Additional Comments From bangerth at dealii dot org 2005-03-23 21:56 --- Related PRs are: PR 19404, and in particular PR 17413. The latter is the one I was thinking of. W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20589

[Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-03-22 Thread caolanm at redhat dot com
--- Additional Comments From caolanm at redhat dot com 2005-03-22 15:46 --- Created an attachment (id=8433) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8433action=view) example -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20589

[Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-03-22 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-22 16:09 --- I think this is invalid code. Mark I think you changed the front-end code to reject this, can you comment on validness of the code attached in this bug? -- What|Removed

[Bug c++/20589] error: 'anonymous enum' is/uses anonymous type'

2005-03-22 Thread mmitchel at gcc dot gnu dot org
--- Additional Comments From mmitchel at gcc dot gnu dot org 2005-03-22 16:16 --- Yes, this is invalid code, as the template parameters involve an anonymous type. -- What|Removed |Added