[Bug c++/50870] [C++0x] [4.6/4.7 Regression] ICE with decltype, operator->, and default template arguments
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Oct 28 19:41:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50870
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dodji at gcc dot gnu.org
--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> 2011-10-28 19:41:40 UTC ---
(In reply to comment #3)
> Uhhm, let's reopen this: first it's a 4.6 Regression too, second we are still
> not Ok for impl template, eg:
>
> template <class V>
> struct impl
> {
> template <class T> static T create();
> };
>
> template <class T, class U, class V, class
> = decltype(impl<V>::template create<T>()
> -> impl<V>::template create<U>())>
> struct tester { };
>
> tester<impl<float>*, int, float> ti;
It is caused by revision 166179:
http://gcc.gnu.org/ml/gcc-cvs/2010-11/msg00065.html
More information about the Gcc-bugs
mailing list