libstdc++/5506: Include of <valarray> fails on FreeBSD 3.4 due to use of _T identifier
gregod@cs.rpi.edu
gregod@cs.rpi.edu
Sun Jan 27 06:46:00 GMT 2002
>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:
More information about the Gcc-prs
mailing list