[Bug c++/53431] C++ preprocessor ignores #pragma GCC diagnostic

robert.simpson.lists at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Nov 26 17:37:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431

Robert J. Simpson <robert.simpson.lists at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |robert.simpson.lists@gmail.
                   |                            |com

--- Comment #34 from Robert J. Simpson <robert.simpson.lists at gmail dot com> ---
Appears to still be an issue in gcc-8:

gcc 8.2.0

#pragma GCC diagnostic ignored "-Wcomment"
// multi-line comment \
// 

../canvas.cpp:85:1: warning: multi-line comment [-Wcomment]
 // multi-line comment \
 ^


More information about the Gcc-bugs mailing list