This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libstdc++/5506: Include of <valarray> fails on FreeBSD 3.4 due to use of _T identifier



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]