[Bug c/62037] cannot pass 'int **' as a 'int const* const*' parameter

2015-11-29 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62037

Andrew Pinski  changed:

   What|Removed |Added

 Status|CLOSED  |RESOLVED
 Resolution|INVALID |DUPLICATE

--- Comment #5 from Andrew Pinski  ---
Marking as a dup of bug 16895.

*** This bug has been marked as a duplicate of bug 16895 ***

[Bug c/62037] cannot pass 'int **' as a 'int const* const*' parameter

2014-08-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62037

Marek Polacek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||mpolacek at gcc dot gnu.org
 Resolution|--- |INVALID

--- Comment #3 from Marek Polacek  ---
Yeah, I don't think there's anything to do.  With latest GCC, you can suppress
this particular warning using -Wno-incompatible-pointer-types.


[Bug c/62037] cannot pass 'int **' as a 'int const* const*' parameter

2014-08-06 Thread mrolnik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62037

Michael Rolnik  changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED

--- Comment #4 from Michael Rolnik  ---
it seems my assumption about const pointers to const data was wrong.


[Bug c/62037] cannot pass 'int **' as a 'int const* const*' parameter

2014-08-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62037

--- Comment #2 from Jonathan Wakely  ---
Firstly, a warning doesn't mean you cannot do it, you just get a warning.

Secondly, that's the correct behaviour, see
http://c-faq.com/ansi/constmismatch.html


[Bug c/62037] cannot pass 'int **' as a 'int const* const*' parameter

2014-08-06 Thread mrolnik at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62037

--- Comment #1 from Michael Rolnik  ---
Created attachment 33262
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33262&action=edit
compiler output