public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/54451] New: c++11/random.cc build failure when _GLIBCXX_USE_C99_STDINT_TR1 is not defined in config.h
@ 2012-09-01 12:01 andris.pavenis at iki dot fi
  2012-09-09  2:36 ` [Bug libstdc++/54451] " rbmj at verizon dot net
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: andris.pavenis at iki dot fi @ 2012-09-01 12:01 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54451
           Summary: c++11/random.cc build failure when
                    _GLIBCXX_USE_C99_STDINT_TR1 is not defined in config.h
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: andris.pavenis@iki.fi


When _GLIBCXX_USE_C99_STDINT_TR1 defined in config.h neither of bits/random.h
and bits/random.tcc gets included and as result c++11/random.cc does not
compile:

random.cc:72:3: error: 'random_device' has not been declared

Noticed that when trying to build recent SVN version as Linux to DJGPP
cross-compiler. Tested versions 2012-08-30 and later.

Commenting out '#ifdef _GLIBCXX_USE_C99_STDINT_TR1' fixed build problem, but
I'm not sure that it is correct solution.


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

end of thread, other threads:[~2012-09-14 11:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-01 12:01 [Bug libstdc++/54451] New: c++11/random.cc build failure when _GLIBCXX_USE_C99_STDINT_TR1 is not defined in config.h andris.pavenis at iki dot fi
2012-09-09  2:36 ` [Bug libstdc++/54451] " rbmj at verizon dot net
2012-09-09 11:45 ` paolo.carlini at oracle dot com
2012-09-09 11:50 ` redi at gcc dot gnu.org
2012-09-09 16:48 ` andris.pavenis at iki dot fi
2012-09-09 17:20 ` redi at gcc dot gnu.org
2012-09-09 18:08 ` rbmj at verizon dot net
2012-09-09 18:19 ` redi at gcc dot gnu.org
2012-09-14  9:45 ` paolo.carlini at oracle dot com
2012-09-14 11:44 ` hjl.tools at gmail dot com

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