From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27121 invoked by alias); 17 Feb 2004 02:20:31 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27112 invoked from network); 17 Feb 2004 02:20:30 -0000 Received: from unknown (HELO maynard.mail.mindspring.net) (207.69.200.243) by sources.redhat.com with SMTP; 17 Feb 2004 02:20:30 -0000 Received: from user-119a90a.biz.mindspring.com ([66.149.36.10] helo=berman.michael-chastain.com) by maynard.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1AsuqL-0007VT-00; Mon, 16 Feb 2004 21:20:13 -0500 Received: by berman.michael-chastain.com (Postfix, from userid 502) id 24CA64B104; Mon, 16 Feb 2004 21:20:08 -0500 (EST) To: carlton@kealia.com, drow@mvista.com Subject: Foo Cc: gdb@sources.redhat.com Message-Id: <20040217022008.24CA64B104@berman.michael-chastain.com> Date: Tue, 17 Feb 2004 02:20:00 -0000 From: mec.gnu@mindspring.com (Michael Elizabeth Chastain) X-SW-Source: 2004-02/txt/msg00184.txt.bz2 Here's a test program, derived from gdb.cp/templates.cc: #include #include template class Foo { public: int method (); }; template int Foo::method () { return strlen (name); } char string [10] = "hello"; int main () { Foo f1; std::cout << f1.method () << std::endl; return 0; } The second template parameter is a "char *"; a value, not a type. gcc 3.3.2 -gstabs+ emits this: .stabs "Foo:Tt(1,1)=..." gcc HEAD -gstabs+ just changed to emit this: .stabs "Foo:Tt(0,25)=..." Do we care? I think the "(char*)(&string)" looks ugly but is legal. I want to change templates.exp to accept this as a PASS. I've found enough serious stabs+ bugs with gcc that I don't want to make a fuss over this difference. What do you think? Michael C