From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22181 invoked by alias); 20 Aug 2008 11:55:47 -0000 Received: (qmail 21505 invoked by uid 48); 20 Aug 2008 11:54:26 -0000 Date: Wed, 20 Aug 2008 11:55:00 -0000 Subject: [Bug c++/37177] New: ICE on decltype(rel_ops::operator>); X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "chris dot fairles at gmail dot com" 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-08/txt/msg01437.txt.bz2 The bug was discovered using the line in the summary, but a reduced test case also produces the ICE: namespace N1 { template bool foo(); } } int main() { decltype(N1::foo) a; } I believe this is ice-on-valid since removing the template like so: namespace N1 { bool foo(); } int main() { decltype(N1::foo) a; } makes "a" a function type 'bool(void)'. -- Summary: ICE on decltype(rel_ops::operator>); Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chris dot fairles at gmail dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37177