[Bug c/89734] const qualifier on return type not erased inside __typeof__

2019-03-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89734

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org,
   ||jsm28 at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek  ---
This changed with r236231 aka DR#423.

[Bug c/89734] const qualifier on return type not erased inside __typeof__

2019-03-15 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89734

--- Comment #1 from joseph at codesourcery dot com  ---
This doesn't need typeof.  The following much simpler test demonstrates 
this regression.

typedef const int CI;
CI f (void);
const int f (void);