From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5915 invoked by alias); 23 Jul 2007 20:55:45 -0000 Received: (qmail 5891 invoked by uid 48); 23 Jul 2007 20:55:35 -0000 Date: Mon, 23 Jul 2007 20:55:00 -0000 Message-ID: <20070723205535.5890.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/27211] Bogus error "template definition of non-template" when there is no non-template In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "reichelt at gcc dot gnu 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: 2007-07/txt/msg02374.txt.bz2 ------- Comment #5 from reichelt at gcc dot gnu dot org 2007-07-23 20:55 ------- On mainline the diagnostic for the second testcase got even worse: bug.cc:3: error: no 'void A::foo()' member function declared in class 'A' bug.cc:3: error: prototype for 'void A::foo()' does not match any in class 'A' bug.cc:3: error: candidate is: void A::foo() bug.cc:3: error: 'void A::foo()' cannot be overloaded bug.cc:3: error: with 'void A::foo()' bug.cc:3: error: declaration of 'void A::foo()' outside of class is not definition bug.cc:3: error: template definition of non-template 'void A::foo()' -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27211