This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/5506: Include of <valarray> fails on FreeBSD 3.4 due to use of _T identifier
- From: gregod at cs dot rpi dot edu
- To: gcc-gnats at gcc dot gnu dot org
- Date: 27 Jan 2002 14:37:47 -0000
- Subject: libstdc++/5506: Include of <valarray> fails on FreeBSD 3.4 due to use of _T identifier
- Reply-to: gregod at cs dot rpi dot edu
>Number: 5506
>Category: libstdc++
>Synopsis: Include of <valarray> fails on FreeBSD 3.4 due to use of _T identifier
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 27 06:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Doug Gregor
>Release: gcc-2.95.x (also verified on 2.95 branch of CVS)
>Organization:
>Environment:
FreeBSD 3.4
>Description:
FreeBSD 3.4's <ctype.h> defines a macro _T. Then when _T is used as a template parameter (in include/g++-3/std/mask_array.h and /include/g++-3/std/slice_array.h), it is expanded to an implementation-defined constant and bad things happen.
>How-To-Repeat:
#include <valarray>
>Fix:
sed s/_T/T/g on slice_array.h and mask_array.h
>Release-Note:
>Audit-Trail:
>Unformatted: