This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11078] [ABI] decltype(T()) doesn't work
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Oct 2007 23:54:12 -0000
- Subject: [Bug c++/11078] [ABI] decltype(T()) doesn't work
- References: <bug-11078-6207@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #28 from jason at gcc dot gnu dot org 2007-10-03 23:54 -------
Changing the testcase to use decltype instead of typeof produces this error
with current sources:
wa.C:2: sorry, unimplemented: zero-operand casts cannot be mangled due to a
defect in the C++ ABI
Now that we have decltype, I think we don't need to worry about mangling
typeof. I'm just going to add a sorry to suggest that people use decltype
instead.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |doug dot gregor at gmail dot
| |com
Keywords|ice-on-valid-code |rejects-valid
Summary|[ABI] ICE in write_type with|[ABI] decltype(T()) doesn't
|typeof and templates |work
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11078