From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3388 invoked by alias); 18 Dec 2009 00:42:19 -0000 Received: (qmail 3316 invoked by uid 48); 18 Dec 2009 00:42:06 -0000 Date: Fri, 18 Dec 2009 00:42:00 -0000 Message-ID: <20091218004206.3315.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/42338] [c++0x] ICE on decltype usage with templates In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "redi 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: 2009-12/txt/msg01780.txt.bz2 ------- Comment #2 from redi at gcc dot gnu dot org 2009-12-18 00:42 ------- I suspect this is the same issue, as it also passes a null argument to write_expression $ cat ice.cc template auto f(T t) -> decltype(++t, 0) { ++t; return 0; } int main() { f((int*)0); } $ ~/gcc/4.x/bin/g++ -std=c++0x ice.cc ice.cc: In instantiation of 'decltype (((++ t), 0)) f(T) [with T = int*, decltype (((++ t), 0)) = int]': ice.cc:10:14: instantiated from here ice.cc:6:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42338