http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46831

--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-27 13:09:52 
UTC ---
(In reply to comment #1)
> 
> --------------------------------------------------
> We can make this to crash on valid code, too:
> --------
> 
> struct B { }; 
> struct D : B { }; 
> struct A { 
>   template<typename T = void> operator D&(); 
>   operator long(); 
> }; 
> 
> void f(long); 
> void f(B&);
> 
> int main() { f(A()); }

This ICE is also caused by revision 159335:

http://gcc.gnu.org/ml/gcc-cvs/2010-05/msg00387.html

Reply via email to