From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15947 invoked by alias); 20 Jun 2008 14:01:08 -0000 Received: (qmail 15920 invoked by uid 48); 20 Jun 2008 14:01:07 -0000 Date: Fri, 20 Jun 2008 14:01:00 -0000 Message-ID: <20080620140107.15919.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2008-q2/txt/msg00102.txt.bz2 ------- Comment #13 from pinskia at gcc dot gnu dot org 2008-06-20 14:01 ------- think of: template struct CBase { protected: T *i; }; template<> struct CBase { protected: typedef int i; }; template struct CDerived : public CBase { inline T* foo (void) { return const_cast i; } } What happens then? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36576