This is the mail archive of the
mailing list for the GCC project.
Support for C++11 decltype (N3276)
- From: Johan Lundberg <lundberj at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 9 Aug 2012 00:00:25 +0200
- Subject: Support for C++11 decltype (N3276)
Dear all, thank you for a great compiler!
I have a question and feature request for C++11 decltype. The C++11
standard definition of decltype is described in N3276, but in
earlier versions/C++0x it was N3243. The old version has been
supported by gcc since a long time. The changes are quite important.
I'm wondering if there is any effort on supporting N3276?
cheers Johan Lundberg
There's an open bug, with a really simple test code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52748 . As expected it
breaks gcc4.7 (eats memory indefinitely).
The C++11 support page (http://gcc.gnu.org/gcc-4.7/cxx0x_status.html)
lists decltype support as 'Yes' but with reference only to the old
The authors of the N3276 document "...do not anticipate that other
implementors will have any difficulty implementing this change.", but
I would not know. I'd love to help but have no experience with