[Bug c++/16375] decltype in class definition

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 2 00:19:00 GMT 2012


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|typeof() in class           |decltype in class
                   |definition                  |definition

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-02 00:19:14 UTC ---
The first testcase works on the trunk while the second still does not even when
using decltype.
t788.cc:4:15: error: invalid use of ‘this’ at top level
t788.cc:5:15: error: invalid use of ‘this’ at top level



More information about the Gcc-bugs mailing list