[Bug c/57133] false const qualifier warning typedef

2013-05-01 Thread grpintar at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57133 --- Comment #3 from grpintar at gmail dot com 2013-05-01 12:43:28 UTC --- (In reply to comment #1) > (In reply to comment #0) > > typedef char *type; > > > > void f(const type t) > > { > > This doesn't do what you think it does. t is

[Bug c/57133] false const qualifier warning typedef

2013-05-01 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57133 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c/57133] false const qualifier warning typedef

2013-05-01 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57133 --- Comment #1 from Mikael Pettersson 2013-05-01 11:37:56 UTC --- (In reply to comment #0) > typedef char *type; > > void f(const type t) > { This doesn't do what you think it does. t is now a const variable of type char*, not a va