Date: Fri, 11 Jun 2004 07:10:24 GMT From: David Schultz <das@FreeBSD.ORG> To: freebsd-bugs@FreeBSD.org Subject: Re: gnu/67798: C++ can't compile anything with -ansi Message-ID: <200406110710.i5B7AO8Z059883@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR gnu/67798; it has been noted by GNATS.
From: David Schultz <das@FreeBSD.ORG>
To: Jack Lloyd <lloyd@randombit.net>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: gnu/67798: C++ can't compile anything with -ansi
Date: Fri, 11 Jun 2004 00:02:16 -0700
On Thu, Jun 10, 2004, Jack Lloyd wrote:
> >Number: 67798
> >Category: gnu
> >Synopsis: C++ can't compile anything with -ansi
[...]
> Essentially using any C++ headers and compiling with the -ansi
> flag fails on FreeBSD 5.1, and probably most 5- releases (it was
> reported on the GCC list March 2003). I haven't tested 5.2/5.2.1,
> if this has been fixed please just close + let me know it's OK now.
It has been fixed, along with many other namespace issues that
arose because libstdc++ didn't adapt to namespace changes induced
by command line options. From src/contrib/libstdc++/ChangeLog:
2003-04-18 Loren J. Rittle <ljrittle@acm.org>
* config/os/bsd/freebsd/ctype_inline.h: Support _M_table
when so installed.
* docs/html/17_intro/porting.texi (_GLIBCPP_USE_C99_CHECK): New macro.
(_GLIBCPP_USE_C99_DYNAMIC): New macro.
(_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
(_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
* config/os/bsd/freebsd/os_defines.h (_GLIBCPP_USE_C99_CHECK):
New macro.
(_GLIBCPP_USE_C99_DYNAMIC): New macro.
(_GLIBCPP_USE_C99_LONG_LONG_CHECK): New macro.
(_GLIBCPP_USE_C99_LONG_LONG_DYNAMIC): New macro.
* include/c_std/std_cstdlib.h: Use new macros.
* include/c_std/std_cstdio.h: Use new macros.
* include/c_std/std_cwchar.h: Use new macros.
You now owe Loren a beer. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406110710.i5B7AO8Z059883>
