From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27631 invoked by alias); 30 Mar 2011 00:12:19 -0000 Received: (qmail 27622 invoked by uid 22791); 30 Mar 2011 00:12:16 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 Mar 2011 00:12:13 +0000 From: "flast at flast dot jp" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/47125] [4.5/4.6 Regression] ICE occurs in combination with partial specialization and invalid template function. X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: flast at flast dot jp X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P5 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.5.3 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 30 Mar 2011 00:28:00 -0000 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: 2011-03/txt/msg03097.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47125 --- Comment #6 from Kohei Takahashi 2011-03-30 00:12:12 UTC --- It works good now. However GCC shows following error message. ---- testcase.cpp: In function 'void g()': testcase.cpp:17:10: error: no matching function for call to 'f(int)' testcase.cpp:17:10: note: candidate is: testcase.cpp:12:8: note: template class enable_if::type f(T) I think error message like followings is better. ---- testcase.cpp:11:1: error: need 'typename' before 'enable_if::type' because 'enable_if' is a dependent scope testcase.cpp: In function 'void g()': testcase.cpp:17:10: error: 'f' was not declared in this scope