From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24105 invoked by alias); 19 Aug 2008 16:17:19 -0000 Received: (qmail 23975 invoked by uid 22791); 19 Aug 2008 16:17:18 -0000 X-Spam-Check-By: sourceware.org Received: from exprod6og109.obsmtp.com (HELO exprod6og109.obsmtp.com) (64.18.1.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 19 Aug 2008 16:16:15 +0000 Received: from source ([192.150.8.22]) by exprod6ob109.postini.com ([64.18.5.12]) with SMTP; Tue, 19 Aug 2008 09:16:11 PDT Received: from inner-relay-3.eur.adobe.com (inner-relay-3b [10.128.4.236]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id m7JGG9E0002389; Tue, 19 Aug 2008 09:16:10 -0700 (PDT) Received: from apacmail.pac.adobe.com (apacmail.pac.adobe.com [130.248.36.99]) by inner-relay-3.eur.adobe.com (8.12.10/8.12.9) with ESMTP id m7JGG6qJ004486; Tue, 19 Aug 2008 09:16:07 -0700 (PDT) Received: from namailgen.corp.adobe.com ([10.8.192.91]) by apacmail.pac.adobe.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 20 Aug 2008 01:16:04 +0900 Received: from 10.7.234.18 ([10.7.234.18]) by namailgen.corp.adobe.com ([10.8.192.91]) via Exchange Front-End Server namail.corp.adobe.com ([10.8.189.97]) with Microsoft Exchange Server HTTP-DAV ; Tue, 19 Aug 2008 16:16:03 +0000 User-Agent: Microsoft-Entourage/12.12.0.080729 Date: Tue, 19 Aug 2008 16:17:00 -0000 Subject: Re: Template type usage from base classes From: Eljay Love-Jensen To: Michael Kaes , GCC-help Message-ID: In-Reply-To: <9c1eb01c0808190834p147266b8w2ae6224ee49689b9@mail.gmail.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00171.txt.bz2 Hi Michael, Try this... template< size_t sizeValue > class Derived : public Base { public: Derived() : Base::val_t>(1) { } }; Microsoft's compiler is in error, it should not accept your non-compliant code. HTH, --Eljay