From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29415 invoked by alias); 13 Jan 2008 02:13:26 -0000 Received: (qmail 29305 invoked by uid 48); 13 Jan 2008 02:12:42 -0000 Date: Sun, 13 Jan 2008 02:24:00 -0000 Message-ID: <20080113021242.29304.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: "bangerth at dealii dot org" 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: 2008-01/txt/msg01221.txt.bz2 ------- Comment #1 from bangerth at dealii dot org 2008-01-13 02:12 ------- One could make the argument that the dllimport specifier is a storage-class-specifier which, per 11.4/6 is not allowed on the friend declaration. Since a friend function declaration needs to be preceded by a declaration of the function itself, it will always be sufficient if the dllimport specifier is only on the original function declaration. I therefore think that the PR is invalid, but leave the final decision to someone with more knowledge. W. -- bangerth at dealii dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bangerth at dealii dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34749