From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30510 invoked by alias); 2 Jun 2004 14:08:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 30484 invoked by uid 48); 2 Jun 2004 14:08:52 -0000 Date: Wed, 02 Jun 2004 14:08:00 -0000 Message-ID: <20040602140852.30483.qmail@sourceware.org> From: "herbert at linuxhacker dot at" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040602102940.15773.herbert@linuxhacker.at> References: <20040602102940.15773.herbert@linuxhacker.at> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/15773] Error, if compiled with -O3 (gettext method name) X-Bugzilla-Reason: CC X-SW-Source: 2004-06/txt/msg00213.txt.bz2 List-Id: ------- 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