This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15773] Error, if compiled with -O3 (gettext method name)
- From: "herbert at linuxhacker dot at" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2004 14:08:52 -0000
- Subject: [Bug c++/15773] Error, if compiled with -O3 (gettext method name)
- References: <20040602102940.15773.herbert@linuxhacker.at>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From herbert at linuxhacker dot at 2004-06-02 14:08 -------
(In reply to comment #1)
> Can you provide the preprocessed source, I think this is a case of glibc using
defines instead of inline
> functions.
I found in /usr/include/libintl.h i the following:
/* Optimized version of the function above. */
#if defined __OPTIMIZE__
[...] snipped
# define gettext(msgid) dgettext (NULL, msgid)
# define dgettext(domainname, msgid) \
dcgettext (domainname, msgid, LC_MESSAGES)
[...]
The t1.ii contains:
foo (const char *a) : s(a) {}
std::string dcgettext (__null, void, __LC_MESSAGES) { return s; }
};
I think, it is the same error:
http://lists.gnu.org/archive/html/bug-gnu-utils/2002-06/msg00156.html
It' look like, that this error is no compiler failure?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15773