[Bug libstdc++/70845] [6/7 Regression] inherited piecewise_construct_t constructor from std::pair by "using-declarations" is missing
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 28 11:38:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70845
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Component|c++ |libstdc++
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Complete testcase (would it really have hurt to include the headers to make the
testcase valid?)
#include <utility>
#include <string>
#include <tuple>
struct Test : public std::pair<int, std::string> {
using std::pair<int, std::string>::pair;
};
Test p(std::piecewise_construct, std::forward_as_tuple(1),
std::forward_as_tuple("abcd"));
More information about the Gcc-bugs
mailing list