[Bug c++/61038] g++ -E is unusable with UDL strings

2014-06-05 Thread emsr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61038 --- Comment #14 from emsr at gcc dot gnu.org --- Author: emsr Date: Thu Jun 5 11:17:25 2014 New Revision: 211267 URL: http://gcc.gnu.org/viewcvs?rev=211267&root=gcc&view=rev Log: PR c++/61038 I was asked to combine the escape logic for regular c

[Bug c++/61038] g++ -E is unusable with UDL strings

2014-06-05 Thread emsr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61038 --- Comment #13 from emsr at gcc dot gnu.org --- Author: emsr Date: Thu Jun 5 11:12:08 2014 New Revision: 211266 URL: http://gcc.gnu.org/viewcvs?rev=211266&root=gcc&view=rev Log: PR c++/61038 I was asked to combine the escape logic for regular c

[Bug c++/61038] g++ -E is unusable with UDL strings

2014-05-20 Thread emsr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61038 emsr at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/61038] g++ -E is unusable with UDL strings

2014-05-20 Thread emsr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61038 --- Comment #11 from emsr at gcc dot gnu.org --- Author: emsr Date: Wed May 21 00:35:29 2014 New Revision: 210666 URL: http://gcc.gnu.org/viewcvs?rev=210666&root=gcc&view=rev Log: gcc/testsuite/ 2014-05-20 Edward Smith-Rowland <3dw...@verizon.

[Bug c++/61038] g++ -E is unusable with UDL strings

2014-05-12 Thread emsr at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61038 emsr at gcc dot gnu.org changed: What|Removed |Added Attachment #32783|0 |1 is obsolete|

[Bug c++/61038] g++ -E is unusable with UDL strings

2014-05-12 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61038 --- Comment #9 from Daniel Krügler --- (In reply to Ben Longbons from comment #8) > What about multi-char constants, or are they not permitted in C++ UDLs? > Normally they get converted to int, so they're not *meaningful*, but ... There exists a

[Bug c++/61038] g++ -E is unusable with UDL strings

2014-05-12 Thread b.r.longbons at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61038 --- Comment #8 from Ben Longbons --- (In reply to Ed Smith-Rowland from comment #7) > Note to self: you DO need to take care of char... What about multi-char constants, or are they not permitted in C++ UDLs? Normally they get converted to int, s

[Bug c++/61038] g++ -E is unusable with UDL strings

2014-05-12 Thread 3dw4rd at verizon dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61038 --- Comment #7 from Ed Smith-Rowland <3dw4rd at verizon dot net> --- Note to self: you DO need to take care of char... void operator "" _t(const char) { } #define QUOTE(s) #s int main() { QUOTE('"'_t); QUOTE('\''_t); QUOTE('\\'_t);

[Bug c++/61038] g++ -E is unusable with UDL strings

2014-05-12 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61038 --- Comment #6 from Paolo Carlini --- Please send your patches, questions, etc, about this and the other bug to the mailing list, with Jason in CC, otherwise we seriously risk unnecessarily delaying the resolution of the issues.

[Bug c++/61038] g++ -E is unusable with UDL strings

2014-05-12 Thread 3dw4rd at verizon dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61038 --- Comment #5 from Ed Smith-Rowland <3dw4rd at verizon dot net> --- I'm pretty sure I have my arms around this one. Two questions: 1. Any ideas on how to make testsuite cases? Any examples of looking at preprocessed files in the testsuite? 2. As

[Bug c++/61038] g++ -E is unusable with UDL strings

2014-05-12 Thread emsr at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61038 emsr at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/61038] g++ -E is unusable with UDL strings

2014-05-12 Thread emsr at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61038 --- Comment #3 from emsr at gcc dot gnu.org --- Created attachment 32782 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32782&action=edit g++ -std=c++11 -E pr61038.C > pr61038_cxx11.ii Get preprocessed output in C++11 mode.

[Bug c++/61038] g++ -E is unusable with UDL strings

2014-05-12 Thread emsr at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61038 --- Comment #2 from emsr at gcc dot gnu.org --- Created attachment 32781 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32781&action=edit g++ -E pr61038.C > pr61038_cxx98.ii Get preprocessed output in C++98 mode.