Hi, It seems that `diagnostic ignored -Wcomment` has no effect. Since nothing states that it does not work, I would expect no warning here. Thanks :) ``` int main() { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wcomment" /* /* */ #pragma GCC diagnostic pop return 0; } gcc -Wall /tmp/foo.cpp /tmp/foo.cpp:5:5: warning: "/*" within comment [-Wcomment] ```
behavior observed: - debian 9 with gcc 6.3 & 5.4 gcc (Debian 6.3.0-7) 6.3.0 20170218 gcc-5 (Debian 5.4.1-5) 5.4.1 20170205 - CentOS 7.2 gcc 6.2 (rhel-devtoolset)
Dup *** This bug has been marked as a duplicate of bug 53431 ***