From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12457 invoked by alias); 13 May 2004 00:56:07 -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 12450 invoked by uid 48); 13 May 2004 00:56:07 -0000 Date: Thu, 13 May 2004 12:22:00 -0000 From: "igodard at pacbell dot net" To: gcc-bugs@gcc.gnu.org Message-ID: <20040513005606.15410.igodard@pacbell.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/15410] New: error not flagged X-Bugzilla-Reason: CC X-SW-Source: 2004-05/txt/msg01220.txt.bz2 List-Id: The following code compiles without error despite the template signature mismatch between the template declaration and the friend declaration. template struct F; class W { template friend class F; int x; }; template struct F { void Look(W& w) { w.x = 3; } }; int main() { W w; F f; f.Look(w); return 0; } -- Summary: error not flagged Product: gcc Version: 3.4.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: igodard at pacbell dot net CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15410