From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21024 invoked by alias); 20 Jul 2005 14:51:32 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 20612 invoked by uid 22791); 20 Jul 2005 14:51:08 -0000 Received: from [212.44.24.7] (HELO mail.aprsmartlogik.com) (212.44.24.7) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Wed, 20 Jul 2005 14:51:08 +0000 Received: from [192.168.4.17] ([192.168.4.17]) by mail.aprsmartlogik.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 20 Jul 2005 15:50:43 +0100 Message-ID: <42DE64C2.1020605@aprsmartlogik.com> Date: Wed, 20 Jul 2005 14:51:00 -0000 From: Michael Gatford User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 MIME-Version: 1.0 To: gcc help Subject: too few template-parameter-lists Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-07/txt/msg00200.txt.bz2 Hi, The following compiles ok with egcs-2.91.66 on Solaris (5.6/7/8), with gcc2.95.3 on Redhat 8.0 and VS6 on Windows, but not with GCC 4.0.0 on Fedora Core 4. The following is defined in a header file // Structure mapping a command name to a function to be // called, within a class-based context. template struct commandTags { char* name; void (X::*func)(); }; which is included by a program in which it is used like, e.g. commandTags mapTags::mustags[] = { { "page.include", &FmPage::includeFile }, { "page.version", &FmPage::printVersion }, { "page.script_name", &FmPage::printScriptname }, { "page.gif_dir", &FmPage::printGifdir }, ........ ........ } This generates the error "too few template-parameter-lists". Mike -- ___________________________________________________ Michael Gatford Senior Technical Consultant ___________________________________________________ APR Smartlogik Limited. Rustat House - Clifton Road - Cambridge - CB1 7EJ phone +44 (0)1223 27 1025 fax +44 (0)1223 27 1010 map: http://www.aprsmartlogik.com/contact/CambridgeMap.pdf mailto:michael.gatford@aprsmartlogik.com http://www.aprsmartlogik.com/ *********************************************************************** This e-mail may contain proprietary and confidential information and is intended for the recipient(s) only. If an addressing or transmission error has misdirected this e-mail, please notify the systems administrator by forwarding this e-mail to mailto:postmaster@aprsmartlogik.com. If you are not the intended recipient(s) disclosure, distribution, copying or printing of this e-mail is strictly prohibited. ***********************************************************************