From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27443 invoked by alias); 29 Jul 2013 20:30:14 -0000 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 Received: (qmail 27392 invoked by uid 48); 29 Jul 2013 20:30:12 -0000 From: "scovich at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58022] [4.8 Regression] Compiler rejects abstract class in template class with friend operator<< Date: Mon, 29 Jul 2013 20:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: scovich at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-07/txt/msg01439.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58022 --- Comment #3 from Ryan Johnson --- (In reply to Paolo Carlini from comment #1) > Please try to reduce the testcase further, no includes. You have a number of > options here: http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction Sorry, I thought was an important part of the bug and did some work to put it back in... Here's the fully reduced case: // <<<--- begin bug.cpp --->>> template class basic_ostream; typedef basic_ostream ostream; template basic_ostream& operator<<(basic_ostream&, T); template class foo; template ostream & operator<<(ostream&, const foo&); template class foo { friend ostream& operator<< (ostream&, const foo&); }; class bar; foo fb; class bar { virtual void baz()=0; }; // <<<--- end bug.cpp --->>>