This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36797] ICE on SFINAE and __is_empty
- From: "sebor at roguewave dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jul 2008 15:41:48 -0000
- Subject: [Bug c++/36797] ICE on SFINAE and __is_empty
- References: <bug-36797-1186@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from sebor at roguewave dot com 2008-07-14 15:41 -------
(In reply to comment #7)
> Subject: Re: ICE on SFINAE and __is_empty
>
> sebor at roguewave dot com wrote:
>
> > My preference would be for gcc to avoid imposing restrictions on the use
> > of these helpers to facilitate portability to other compilers such as EDG
> > eccp (the latest 3.10.1 compiles the test case correctly).
>
> How does it mangle it?
Like so:
int foo<A<0> >(B<A<0>, __is_empty (A<0>)>::X*):
_Z3fooI1AILi0EEEiPN1BIT_Xv19builtin16TOS3_EE1XE
int foo<int>(B<int, !__is_empty (int)>::X*):
_Z3fooIiEiPN1BIT_Xntv19builtin16TOS1_EE1XE
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36797