This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47125] [4.5/4.6 Regression] ICE occurs in combination with partial specialization and invalid template function.
- From: "flast at flast dot jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 30 Mar 2011 00:12:12 +0000
- Subject: [Bug c++/47125] [4.5/4.6 Regression] ICE occurs in combination with partial specialization and invalid template function.
- Auto-submitted: auto-generated
- References: <bug-47125-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47125
--- Comment #6 from Kohei Takahashi <flast at flast dot jp> 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 T> class enable_if<true, T>::type f(T)
I think error message like followings is better.
----
testcase.cpp:11:1: error: need 'typename' before 'enable_if<true, T>::type'
because 'enable_if<true, T>' is a dependent scope
testcase.cpp: In function 'void g()':
testcase.cpp:17:10: error: 'f' was not declared in this scope