From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14808 invoked by alias); 13 Jan 2009 08:12:54 -0000 Received: (qmail 14768 invoked by uid 48); 13 Jan 2009 08:12:42 -0000 Date: Tue, 13 Jan 2009 08:12:00 -0000 Message-ID: <20090113081242.14767.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/34749] Incorrect warning when applying dllimport to friend function In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "angry-kasyan at narod dot ru" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-01/txt/msg01306.txt.bz2 ------- Comment #10 from angry-kasyan at narod dot ru 2009-01-13 08:12 ------- (In reply to comment #9) > (In reply to comment #8) > > still unfixed? > > Please provide a compilable self-contained testcase. > Danny > Here is compilable testcase: ## begin df.cpp __attribute__((dllimport)) int bar(); class Foo { private: int foo(); friend __attribute__((dllimport)) int bar(); }; int Foo::foo() { return bar(); } ## end df.cpp > g++ -S df.cpp I don't see that patch in 4.3.2 or in the 4.3 branch. This is fixed in mainline, so it'll appear in 4.4, I guess. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34749