https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91820
--- Comment #3 from tangyixuan <tangyixuan at mail dot dlut.edu.cn> --- (In reply to Andrew Pinski from comment #1) > does adding -pedantic help? Thanks for your reply. When I add -padantic, gcc-trunk reports warning : 2:45: warning:initialization of ‘volatile int * volatile* const*’ from incompatible pointer type ‘volatile int * volatile* const’ [-Wincompatible-pointer-types] 2 | static volatile int * volatile * const *b = a; target: Ubuntu 4.8.5-4ubuntu8~14.04.2 If I use -w, I do not know where is error. I think reporting an error would be better if possible.