public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61038] New: g++ -E is unusable with UDL strings
@ 2014-05-02 20:11 b.r.longbons at gmail dot com
  2014-05-11  9:33 ` [Bug c++/61038] " paolo.carlini at oracle dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: b.r.longbons at gmail dot com @ 2014-05-02 20:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61038
           Summary: g++ -E is unusable with UDL strings
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: b.r.longbons at gmail dot com

The following program is legal and compiles correctly. However, if preprocessed
only, the .ii file in invalid because it fails to escape the ""s

gcc 4.7, 4.8, and 4.9 all fail. Earlier versions did not support UDLs.

I am marking this as "critical" because it makes reducing testcases for other
bugs very difficult.

// compile with -std=c++11
void operator "" _s(const char *, unsigned long)
{
}

#define QUOTE(s) #s

int main()
{
    QUOTE("hello"_s);
}


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-06-05 11:18 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-02 20:11 [Bug c++/61038] New: g++ -E is unusable with UDL strings b.r.longbons at gmail dot com
2014-05-11  9:33 ` [Bug c++/61038] " paolo.carlini at oracle dot com
2014-05-12 14:12 ` emsr at gcc dot gnu.org
2014-05-12 14:12 ` emsr at gcc dot gnu.org
2014-05-12 14:49 ` emsr at gcc dot gnu.org
2014-05-12 17:59 ` 3dw4rd at verizon dot net
2014-05-12 18:50 ` paolo.carlini at oracle dot com
2014-05-12 21:22 ` 3dw4rd at verizon dot net
2014-05-12 21:32 ` b.r.longbons at gmail dot com
2014-05-12 21:37 ` daniel.kruegler at googlemail dot com
2014-05-21  0:36 ` emsr at gcc dot gnu.org
2014-05-21  0:56 ` emsr at gcc dot gnu.org
2014-06-05 11:12 ` emsr at gcc dot gnu.org
2014-06-05 11:18 ` emsr at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).