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]

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


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


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