egcs1019: Problem with C++ code gen on args passed const char when declared void *
Kenneth & Susan
kenbo@ne.mediaone.net
Thu Oct 29 18:12:00 GMT 1998
Hello,
In C++ code, the following used to emit a warning, but now is an error
(as of 1019 and 1026 snapshots, 0921 works fine). Is this supposed to
be the new behavior?
Thanks!
--
Function foo is declared foo( void * bar), in usage, is used with
the syntax foo("ch") and get:
passing `const char *' as argument 1 of `foo(void *)' discards
qualifiers
which used to be warning, but now breaks compilation.
--
Kenneth & Susan
kenbo@ne.mediaone.net(hm) kenbo@pswtech.com(wk)
http://www.mediaone.net/~kenbo (non-functional at this time)
http://paladin.ne.mediaone.net/~kenbo
Firebirds rule, 'stangs serve!
More information about the Gcc-bugs
mailing list