This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/55713] std::tuple<ElementType> incorrectly is convertible to "ElementType" when it is an empty class
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 16 Dec 2012 17:49:20 +0000
- Subject: [Bug libstdc++/55713] std::tuple<ElementType> incorrectly is convertible to "ElementType" when it is an empty class
- Auto-submitted: auto-generated
- References: <bug-55713-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55713
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-12-16 17:49:20 UTC ---
This was done for an optimization. And I think it is allowed by the C++
standard too.