From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13842 invoked by alias); 30 Aug 2005 16:43:27 -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 13771 invoked by uid 48); 30 Aug 2005 16:43:24 -0000 Date: Tue, 30 Aug 2005 16:48:00 -0000 From: "reichelt at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050830164323.23639.reichelt@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/23639] New: [3.4/4.0/4.1 regression] Bad error message: not a member of '' X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg03481.txt.bz2 List-Id: For a testcase like template struct A { enum { e = 0 }; }; int i = A::e; we get the following error: error.cc:6: error: type/value mismatch at argument 1 in template parameter list for 'template > struct A' error.cc:6: error: expected a constant of type 'int', got 'void' error.cc:6: error: 'e' is not a member of '' The last line is not really helpful. Patch will follow soon. -- Summary: [3.4/4.0/4.1 regression] Bad error message: not a member of '' Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23639