User account creation filtered due to spam.

Bug 48566 - libstdc++-v3 testsuite failures due to missing includes
Summary: libstdc++-v3 testsuite failures due to missing includes
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 4.6.1
: P3 normal
Target Milestone: 4.6.1
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 01:03 UTC by Allan McRae
Modified: 2011-04-12 09:08 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2011-04-12 07:50:00


Attachments
Add missing includes (552 bytes, patch)
2011-04-12 01:10 UTC, Allan McRae
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Allan McRae 2011-04-12 01:03:29 UTC
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.
Comment 1 Allan McRae 2011-04-12 01:10:00 UTC
Created attachment 23958 [details]
Add missing includes
Comment 2 Paolo Carlini 2011-04-12 07:50:00 UTC
Ok, thanks. Will apply your patch momentarily.
Comment 3 paolo@gcc.gnu.org 2011-04-12 09:05:33 UTC
Author: paolo
Date: Tue Apr 12 09:05:30 2011
New Revision: 172303

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172303
Log:
2011-04-12  Allan McRae  <allan@archlinux.org>

	PR libstdc++/48566
	* testsuite/tr1/6_containers/unordered_map/requirements/
	iterator_null_neg.cc: Include <cstddef>.
	* testsuite/tr1/6_containers/unordered_set/requirements/
	iterator_null_neg.cc: Likewise.
	* testsuite/27_io/basic_filebuf/seekoff/wchar_t/4.cc: Include
	<cstring>.
	* testsuite/util/testsuite_common_types.h: Include <limits>.
	* testsuite/29_atomics/atomic_integral/cons/assign_neg.cc:
	Adjust dg-error line numbers.
	* testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise.
	* testsuite/29_atomics/atomic_integral/operators/increment_neg.cc:
	Likewise.
	* testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc:
	Likewise.
	* testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc:
	Likewise.
	* testsuite/29_atomics/atomic/cons/assign_neg.cc: Likewise.
	* testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/wchar_t/4.cc
    trunk/libstdc++-v3/testsuite/29_atomics/atomic/cons/assign_neg.cc
    trunk/libstdc++-v3/testsuite/29_atomics/atomic/cons/copy_neg.cc
    trunk/libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/assign_neg.cc
    trunk/libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/copy_neg.cc
    trunk/libstdc++-v3/testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc
    trunk/libstdc++-v3/testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc
    trunk/libstdc++-v3/testsuite/29_atomics/atomic_integral/operators/increment_neg.cc
    trunk/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/requirements/iterator_null_neg.cc
    trunk/libstdc++-v3/testsuite/tr1/6_containers/unordered_set/requirements/iterator_null_neg.cc
    trunk/libstdc++-v3/testsuite/util/testsuite_common_types.h
Comment 4 paolo@gcc.gnu.org 2011-04-12 09:05:45 UTC
Author: paolo
Date: Tue Apr 12 09:05:41 2011
New Revision: 172304

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172304
Log:
2011-04-12  Allan McRae  <allan@archlinux.org>

	PR libstdc++/48566
	* testsuite/tr1/6_containers/unordered_map/requirements/
	iterator_null_neg.cc: Include <cstddef>.
	* testsuite/tr1/6_containers/unordered_set/requirements/
	iterator_null_neg.cc: Likewise.
	* testsuite/27_io/basic_filebuf/seekoff/wchar_t/4.cc: Include
	<cstring>.
	* testsuite/util/testsuite_common_types.h: Include <limits>.
	* testsuite/29_atomics/atomic_integral/cons/assign_neg.cc:
	Adjust dg-error line numbers.
	* testsuite/29_atomics/atomic_integral/cons/copy_neg.cc: Likewise.
	* testsuite/29_atomics/atomic_integral/operators/increment_neg.cc:
	Likewise.
	* testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc:
	Likewise.
	* testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc:
	Likewise.
	* testsuite/29_atomics/atomic/cons/assign_neg.cc: Likewise.
	* testsuite/29_atomics/atomic/cons/copy_neg.cc: Likewise.

Modified:
    branches/gcc-4_6-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_6-branch/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/wchar_t/4.cc
    branches/gcc-4_6-branch/libstdc++-v3/testsuite/29_atomics/atomic/cons/assign_neg.cc
    branches/gcc-4_6-branch/libstdc++-v3/testsuite/29_atomics/atomic/cons/copy_neg.cc
    branches/gcc-4_6-branch/libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/assign_neg.cc
    branches/gcc-4_6-branch/libstdc++-v3/testsuite/29_atomics/atomic_integral/cons/copy_neg.cc
    branches/gcc-4_6-branch/libstdc++-v3/testsuite/29_atomics/atomic_integral/operators/bitwise_neg.cc
    branches/gcc-4_6-branch/libstdc++-v3/testsuite/29_atomics/atomic_integral/operators/decrement_neg.cc
    branches/gcc-4_6-branch/libstdc++-v3/testsuite/29_atomics/atomic_integral/operators/increment_neg.cc
    branches/gcc-4_6-branch/libstdc++-v3/testsuite/tr1/6_containers/unordered_map/requirements/iterator_null_neg.cc
    branches/gcc-4_6-branch/libstdc++-v3/testsuite/tr1/6_containers/unordered_set/requirements/iterator_null_neg.cc
    branches/gcc-4_6-branch/libstdc++-v3/testsuite/util/testsuite_common_types.h
Comment 5 Paolo Carlini 2011-04-12 09:08:09 UTC
Done.