casting const aways shouldn't be an error even with -pedantic-errors

Martin v. Loewis
Sun Mar 5 03:07:00 GMT 2000

> The following code gives an error with -pedantic-errors -Wconst-qual.  It 
> should only be a warning.

Thanks for your bug report. I cannot reproduce this bug with either
1.1.2, or 2.95.2; I always get a warning only. Your report was
somewhat confusing (e.g. -Wconst-qual is not an option), so perhaps I
was trying the wrong test case.


More information about the Gcc-bugs mailing list