This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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?????


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]