From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15458 invoked by alias); 27 Oct 2008 01:33:33 -0000 Received: (qmail 14993 invoked by uid 48); 27 Oct 2008 01:32:09 -0000 Date: Mon, 27 Oct 2008 01:33:00 -0000 Message-ID: <20081027013209.14992.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/37920] ICE (segv) with typename typeof in local struct In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-10/txt/msg01698.txt.bz2 ------- Comment #3 from pinskia at gcc dot gnu dot org 2008-10-27 01:32 ------- Reduced testcase: template T& ensure_obj(const T&); template void func2(T& t) { typedef __typeof__(ensure_obj(t)) ttt; struct ttt1 { ttt1( ttt arg0 ){} } tttt ( t ); } main() { double d = 5; func2(d); } ---- CUT ---- If I use decltype (which is part of the C++0x standard), it works .... -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |ice-on-valid-code Last reconfirmed|0000-00-00 00:00:00 |2008-10-27 01:32:09 date| | Summary|ICE (segv) with typename |ICE (segv) with typename |typeof |typeof in local struct http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37920