From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20406 invoked by alias); 4 Dec 2002 15:06:13 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 20390 invoked by uid 71); 4 Dec 2002 15:06:12 -0000 Date: Wed, 04 Dec 2002 07:06:00 -0000 Message-ID: <20021204150612.20382.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: RE: c++/7934: definition of static member for template class miss ing in obj file Reply-To: Wolfgang Bangerth X-SW-Source: 2002-12/txt/msg00209.txt.bz2 List-Id: The following reply was made to PR c++/7934; it has been noted by GNATS. From: Wolfgang Bangerth To: "Gu, Michael" Cc: "'gcc-bugs@gcc.gnu.org'" , "'mkjyg@charter.net'" , "'gcc-gnats@gcc.gnu.org'" Subject: RE: c++/7934: definition of static member for template class miss ing in obj file Date: Wed, 4 Dec 2002 09:00:11 -0600 (CST) > template > class A > { > static T * instance; > }; > > template > T * instance=0; Did you mean T * A::instance = 0; ?? The code you sent does not compile (and should not), and is also not what you want. > The same gcc on Sun works for this. So I guess this might be a library > problem for HP compatibility. Yes, maybe. I have seen another report in this form before. Regards Wolfgang ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@ticam.utexas.edu www: http://www.ticam.utexas.edu/~bangerth