This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/58162] [C++11] bogus error: use of deleted function 'constexpr A::A(const A&)'
- From: "james.dennett at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 03 Oct 2013 05:15:05 +0000
- Subject: [Bug c++/58162] [C++11] bogus error: use of deleted function 'constexpr A::A(const A&)'
- Auto-submitted: auto-generated
- References: <bug-58162-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58162
James Dennett <james.dennett at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |james.dennett at gmail dot com
--- Comment #1 from James Dennett <james.dennett at gmail dot com> ---
Jason pointed out to me that cv_unqualified() is more appropriate than
TYPE_MAIN_VARIANT(), and I see that we might want to do the
if (!CLASS_TYPE_P (type) && cv_qualified_p (type))
type = cv_unqualified (type);
dance to avoid needless work for other types.