From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11266 invoked by alias); 9 Aug 2004 15:05:03 -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 11237 invoked by uid 48); 9 Aug 2004 15:05:02 -0000 Date: Mon, 09 Aug 2004 15:05:00 -0000 Message-ID: <20040809150502.11236.qmail@sourceware.org> From: "giovannibajo at libero dot it" 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/msg00665.txt.bz2 List-Id: ------- Additional Comments From giovannibajo at libero dot it 2004-08-09 15:05 ------- I went and read the docs, and still fail to see how it can be useful. But you have a point in that we cannot probably drop support for it so easily. What about stripping out typeof(type) while mangling, then? It really does not buy us anything. Plus, I don't think we want to say that the following declarations are declaring two different functions: void foo(typeof(int*)); void foo(int*); or these: void bar(typeof(typeof(char*) [4]) blah); void bar(char *blah[4]); In other words, we can easily strip typeof(type) while mangling, and encoding typeof(expr) as Y E. If we agree on this, I can prepare a little patch in the following days (even if I am not sure it will be accepted, but hey). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11078