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

           Summary: libstdc++-v3 testsuite failures due to missing
                    includes
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: al...@archlinux.org


Several libstdc++-v3 testsuite failures occur due to missing includes.  They
are listed below with the relevant error messages:

FAIL: 27_io/basic_filebuf/seekoff/wchar_t/4.cc (test for excess errors)
WARNING: 27_io/basic_filebuf/seekoff/wchar_t/4.cc compilation failed to produce
executable
/build/src/gcc-4.6-20110408/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/wchar_t/4.cc:67:3:
error: 'memcmp' was not declared in this scope


FAIL: 27_io/ios_base/types/fmtflags/bitmask_operators.cc (test for excess
errors)
FAIL: 27_io/ios_base/types/iostate/bitmask_operators.cc (test for excess
errors)
FAIL: 27_io/ios_base/types/openmode/bitmask_operators.cc (test for excess
errors)
Excess errors:
/build/src/gcc-4.6-20110408/libstdc++-v3/testsuite/util/testsuite_common_types.h:346:15:
error: 'numeric_limits' in namespace 'std' does not name a type
/build/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/ext/typelist.h:344:47:
error: no type named 'type' in 'struct __gnu_test::numeric_limits<wchar_t>'
/build/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/include/ext/typelist.h:347:51:
error: no type named 'type' in 'struct __gnu_test::numeric_limits<wchar_t>'
...


FAIL: tr1/6_containers/unordered_map/requirements/iterator_null_neg.cc  (test
for errors, line 26)
FAIL: tr1/6_containers/unordered_map/requirements/iterator_null_neg.cc  (test
for errors, line 27)
FAIL: tr1/6_containers/unordered_map/requirements/iterator_null_neg.cc (test
for excess errors)
FAIL: tr1/6_containers/unordered_set/requirements/iterator_null_neg.cc  (test
for errors, line 26)
FAIL: tr1/6_containers/unordered_set/requirements/iterator_null_neg.cc  (test
for errors, line 27)
FAIL: tr1/6_containers/unordered_set/requirements/iterator_null_neg.cc (test
for excess errors)
Excess errors:
/build/src/gcc-4.6-20110408/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/requirements/iterator_null_neg.cc:26:51:
error: 'NULL' was not declared in this scope
/build/src/gcc-4.6-20110408/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/requirements/iterator_null_neg.cc:27:58:
error: 'NULL' was not declared in this scope


The attached patch fixes these issues.

Reply via email to