[Bug c/20230] GCC generates non-compliant warnings for qualifier promotion

2005-12-07 Thread pinskia at gcc dot gnu dot org
--- Comment #12 from pinskia at gcc dot gnu dot org 2005-12-07 17:10 --- Reopening to ... -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/20230] GCC generates non-compliant warnings for qualifier promotion

2005-12-07 Thread pinskia at gcc dot gnu dot org
--- Comment #13 from pinskia at gcc dot gnu dot org 2005-12-07 17:10 --- To close as a dup of bug 16895. *** This bug has been marked as a duplicate of 16895 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/20230] GCC generates non-compliant warnings for qualifier promotion

2005-02-27 Thread falk at debian dot org
--- Additional Comments From falk at debian dot org 2005-02-27 11:16 --- The C standard does in fact not allow this conversion. However, I agree that it might be nice to have an option for semantics as in the C++ standard (4.4). They allow this, and it is safe. --

[Bug c/20230] GCC generates non-compliant warnings for qualifier promotion

2005-02-27 Thread kmk at ssl dot org
--- Additional Comments From kmk at ssl dot org 2005-02-27 12:48 --- I'm not sure I understand why it is thought that the C standard forbids the conversion I'm talking about here. In fact, the final committee draft of the ISO C standard that I have appears to be silent about the issue of

[Bug c/20230] GCC generates non-compliant warnings for qualifier promotion

2005-02-27 Thread joseph at codesourcery dot com
--- Additional Comments From joseph at codesourcery dot com 2005-02-27 13:05 --- Subject: Re: New: GCC generates non-compliant warnings for qualifier promotion On Sun, 27 Feb 2005, kmk at ssl dot org wrote: For any qualifier q, a pointer to a non-q-qualified type may be converted

[Bug c/20230] GCC generates non-compliant warnings for qualifier promotion

2005-02-27 Thread falk at debian dot org
--- Additional Comments From falk at debian dot org 2005-02-27 13:20 --- (In reply to comment #5) Am I wrong? Where does it state in the C standard that you cannot perform a multi-level qualifier promotion? Nowhere. It follows from the fact that it is not allowed explicitly in

[Bug c/20230] GCC generates non-compliant warnings for qualifier promotion

2005-02-27 Thread kmk at ssl dot org
--- Additional Comments From kmk at ssl dot org 2005-02-27 21:37 --- 1. A pointer is a derived type. 2. A derived type is not qualified by the qualifiers (if any) of the type from which it is derived. 3. For any qualifier q, a POINTER to a non-q-qualified type may be converted to a

[Bug c/20230] GCC generates non-compliant warnings for qualifier promotion

2005-02-27 Thread kmk at ssl dot org
--- Additional Comments From kmk at ssl dot org 2005-02-27 21:43 --- 6. I meant right-hand side not left-hand side. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20230

[Bug c/20230] GCC generates non-compliant warnings for qualifier promotion

2005-02-27 Thread joseph at codesourcery dot com
--- Additional Comments From joseph at codesourcery dot com 2005-02-27 22:30 --- Subject: Re: GCC generates non-compliant warnings for qualifier promotion On Sun, 27 Feb 2005, kmk at ssl dot org wrote: 1. A pointer is a derived type. 2. A derived type is not qualified by the

[Bug c/20230] GCC generates non-compliant warnings for qualifier promotion

2005-02-27 Thread kmk at ssl dot org
--- Additional Comments From kmk at ssl dot org 2005-02-27 23:12 --- But const char * isn't a qualified version of char * Ahhh. Now I see your point. Amazingly enough, the C standard does not, under any circumstances, permit objects (including the targets of pointers) to be qualifier

[Bug c/20230] GCC generates non-compliant warnings for qualifier promotion

2005-02-26 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Component|debug |c http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20230

[Bug c/20230] GCC generates non-compliant warnings for qualifier promotion

2005-02-26 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-27 05:32 --- Quals can only be promoted once. -- What|Removed |Added Status|UNCONFIRMED

[Bug c/20230] GCC generates non-compliant warnings for qualifier promotion

2005-02-26 Thread kmk at ssl dot org
--- Additional Comments From kmk at ssl dot org 2005-02-27 06:03 --- Exactly where does it state that you can only promote one _level_ of qualifier, as opposed to promoting a single qualifier scope more than once? Not only that, but even if you declare the string array this way, char