------- Comment #1 from pinskia at gcc dot gnu dot org  2009-09-30 06:07 -------
int const* 

Is legal C++, as it means a pointer to int const (which is the same as const
int), the qualifier can appear before after the type specifier.

 (void) (q = (const int *) &i) >>>    // const re-ordered

Because we need to print this out a canicial way which is just const int*.


(void) (r = &i) >>>            // const disappeared

Because we remove unnessary casts as that is a const pointer to int and the
const part there is unessary.

There is no bug here really


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41509

Reply via email to