This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69683] multiline raw string R"()" for C++11 warning in false #ifdef when -std=c++98
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 05 Feb 2016 11:36:25 +0000
- Subject: [Bug c++/69683] multiline raw string R"()" for C++11 warning in false #ifdef when -std=c++98
- Auto-submitted: auto-generated
- References: <bug-69683-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69683
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Juan Rada-Vilela from comment #0)
> BUT it is expected from the compiler to ignore everything within the
> `#ifdef` because `X` was not defined.
The compiler still has to do tokenization to determine where the end of the
#ifdef block is. Similarly you get a warning for:
#if 0
These aren't valid tokens.
#endif
q.cc:2:11: warning: missing terminating ' character
(And this obviously isn't "major" because it's only a warning!)