[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#423407: gcc-snapshot: invalid warning in -O2



* Pierre Habouzit <madcoder@debian.org> [2007-05-11 16:34]:
> does not work:
>   /usr/lib/gcc-snapshot/bin/gcc -O2 -o a.o a.c
>   a.c: In function 'main':
>   a.c:12: warning: passing argument 1 of 'bar' discards qualifiers from pointer target type

I wonder if that's the same as #403596 (note that I haven't actually
looked at the code yet).

> FWIW under other circumstances I even got an ICE, but I wasn't able
> to reduce the testcase, and the code that generated it is not really
> ..  well open, so I can't give the full file sadly.

What was the exact error message?
-- 
Martin Michlmayr
http://www.cyrius.com/



Reply to: