This is the mail archive of the
gcc-regression@gcc.gnu.org
mailing list for the GCC project.
Re: GCC build failed for native with your patch on 2003-11-20T22:26:08Z.
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: a dot tobler at schweiz dot ch, kazu at cs dot umass dot edu, pcarlini at suse dot de, gcc-regression at gcc dot gnu dot org
- Date: 20 Nov 2003 17:08:52 -0800
- Subject: Re: GCC build failed for native with your patch on 2003-11-20T22:26:08Z.
- References: <200311210034.hAL0Y7AV023248@gcc-regress.apple.com><20031120185545.6fa4de08.bkoz@redhat.com>
Benjamin Kosnik <bkoz@redhat.com> writes:
> >The build failures are new.
>
> the build log clearly implicates my check in in the bulid error.
> However, this builds on linux for me, with the same codepath.
> Furthermore, the error happens at this line:
>
> template<typename _T>
> void
> _Error_formatter::_M_format_word(char* __buf,
> int __n __attribute__((__unused__)), <-----------HERE
> const char* __fmt, _T __s) const
> {
> #ifdef _GLIBCXX_USE_C99
> std::snprintf(__buf, __n, __fmt, __s);
> #else
> std::sprintf(__buf, __fmt, __s);
> #endif
> }
>
>
> it's bailing at the __attribute__.
>
> What gives?? There's this code all over libstdc++-v3.
I see this error message:
/Users/regress/tbox/cvs-gcc/gcc/libstdc++-v3/src/debug.cc:499: error: expected nested-name-specifier
and line 499 is the one with 'template<typename _T>'.
It looks like _T was a poor choice of name, because in
/usr/include/ctype.h there is:
#define _T _CTYPE_T /* Special */
--
- Geoffrey Keating <geoffk@geoffk.org>