[Bug c++/15773] Error, if compiled with -O3 (gettext method name)

herbert at linuxhacker dot at gcc-bugzilla@gcc.gnu.org
Wed Jun 2 14:08:00 GMT 2004


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



More information about the Gcc-bugs mailing list