public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/31426]  New: TR1 includes do not work with -std=c++0x
@ 2007-04-02 14:32 dgregor at gcc dot gnu dot org
  2007-04-02 15:18 ` [Bug libstdc++/31426] " rguenth at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2007-04-02 14:32 UTC (permalink / raw)
  To: gcc-bugs

When the compiler is provided with -std=c++0x to enable the experimental C++0x
mode, includes of TR1 facilities (e.g., tr1/tuple) do not put TR1 functionality
into namespace std::tr1, breaking backward compatibility. Here's an example
program that compiles without -std=c++0x but does not compile with it:

#include <tr1/tuple>

int main()
{
  std::tr1::tuple<int, double> x(17, 3.14);
  return 0;
}


-- 
           Summary: TR1 includes do not work with -std=c++0x
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dgregor at gcc dot gnu dot org


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


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

end of thread, other threads:[~2007-06-01  8:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-02 14:32 [Bug libstdc++/31426] New: TR1 includes do not work with -std=c++0x dgregor at gcc dot gnu dot org
2007-04-02 15:18 ` [Bug libstdc++/31426] " rguenth at gcc dot gnu dot org
2007-04-02 15:33 ` dgregor at gcc dot gnu dot org
2007-04-02 16:26 ` rguenth at gcc dot gnu dot org
2007-04-06  8:33 ` bkoz at gcc dot gnu dot org
2007-05-25 17:12 ` pcarlini at suse dot de
2007-05-25 17:39 ` pcarlini at suse dot de
2007-05-31 23:38 ` paolo at gcc dot gnu dot org
2007-06-01  8:49 ` pcarlini at suse dot de

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).