From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25781 invoked by alias); 3 Aug 2004 21:28:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 25749 invoked by alias); 3 Aug 2004 21:28:00 -0000 Date: Tue, 03 Aug 2004 21:28:00 -0000 Message-ID: <20040803212800.25748.qmail@sourceware.org> From: "boris at kolpackov dot net" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030603112812.11078.jtotland1@chello.no> References: <20030603112812.11078.jtotland1@chello.no> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/11078] [ABI] ICE in write_type with typeof and templates X-Bugzilla-Reason: CC X-SW-Source: 2004-08/txt/msg00272.txt.bz2 List-Id: ------- Additional Comments From boris at kolpackov dot net 2004-08-03 21:27 ------- Subject: Re: [ABI] ICE in write_type with typeof and templates ian at wasabisystems dot com writes: > In fact, in general the compiler can resolve typeof. > In what cases will it not be able to? The only thing I can think of is code like this: struct { } a; static void fa (typeof (a)&) { } struct { } b; static void fb (typeof (b)&) { } void f () { fa (a); fb (b); } It compiles with g++ 3.4.1. nm shows the following: 0000000c T f() 00000000 t fa(._0&) 00000006 t fb(._1&) 00000000 B a 00000001 B b Which suggest that gcc assigns internal names even to anonymous types. So I think it's true that any typeof-expression can be reduced to a type-name. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11078