This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47488] [4.4,4.5,4.6 Regression] (sizeof|decltype) + template + string literals: ICE in write_template_arg_literal, at cp/mangle.c
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 27 Jan 2011 20:17:18 +0000
- Subject: [Bug c++/47488] [4.4,4.5,4.6 Regression] (sizeof|decltype) + template + string literals: ICE in write_template_arg_literal, at cp/mangle.c
- Auto-submitted: auto-generated
- References: <bug-47488-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47488
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at redhat dot com
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-27 20:17:06 UTC ---
(In reply to comment #2)
> For this variation where f<T> is not deduced, 4.4 says "sorry, unimplemented"
> but doesn't ICE, 4.5 and 4.6 ICE in the same place:
>
> template < typename T >
> int f( const char * );
>
> template<int> struct N { };
>
> template < typename T >
> N<sizeof( f<T>( "" ) )> g( const T &t );
>
> void h()
> {
> g( 0 );
> }
It is caused by revision 140120:
http://gcc.gnu.org/ml/gcc-cvs/2008-09/msg00279.html