[Bug c++/48740] Raw C++0x strings and trigraphs mix badly

daniel.kruegler at googlemail dot com gcc-bugzilla@gcc.gnu.org
Sat Apr 23 11:14:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48740

--- Comment #8 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2011-04-23 11:14:01 UTC ---
(In reply to comment #7)
> Created attachment 24079 [details]
> Sorry for the typo, that's what you get for extracting test case. This one is
> better.

I cannot reproduce this warning with gcc 4.7. If I create a program with
observable behaviour like this:

#include <cstdio>

char const *R = R"raw(foo%sbar%sfred%sbob?????)raw";

int main()
{
  std::printf("%s\n", R);
}

the output is loss-free and whithout remaining trigraph transformations:

foo%sbar%sfred%sbob?????



More information about the Gcc-bugs mailing list