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: unassig...@gcc.gnu.org ReportedBy: andris.pave...@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.