public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56411] New: [4.8 regression] Wrong preprocessor output with -std=c++11
@ 2013-02-20 19:23 ppluzhnikov at google dot com
  2013-02-20 19:27 ` [Bug c++/56411] " jakub at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ppluzhnikov at google dot com @ 2013-02-20 19:23 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56411
           Summary: [4.8 regression] Wrong preprocessor output with
                    -std=c++11
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ppluzhnikov@google.com


This is a continuation of PR 52538.

Broke somewhere between r195930(ok) and r196104(broken).

cat t.cc

#define FOO(str) sizeof(""str"")
#define BAR(str) sizeof("" str "")

int main()
{
  unsigned long a = FOO("abc");
  unsigned long b = BAR("abc");
}



g++ -E  /tmp/t.cc  | grep sizeof
  unsigned long a = sizeof("""abc""");
  unsigned long b = sizeof("" "abc" "");

g++ -E -std=c++11 /tmp/t.cc  | grep sizeof
  unsigned long a = sizeof(""str"");         <<<< WHAT?
  unsigned long b = sizeof("" "abc" "");


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

end of thread, other threads:[~2013-02-20 19:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-20 19:23 [Bug c++/56411] New: [4.8 regression] Wrong preprocessor output with -std=c++11 ppluzhnikov at google dot com
2013-02-20 19:27 ` [Bug c++/56411] " jakub at gcc dot gnu.org
2013-02-20 19:32 ` ppluzhnikov at google dot com
2013-02-20 19:34 ` jakub 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).