This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/80737] variant<any> as class member resulting to compile errors


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80737

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Jul 25 18:04:27 2017
New Revision: 250532

URL: https://gcc.gnu.org/viewcvs?rev=250532&root=gcc&view=rev
Log:
PR libstdc++/80737 backport std::variant fix from mainline

Backport from mainline
2017-05-20  Tim Shen  <timshen@google.com>

        PR libstdc++/80737
        * include/std/variant(variant::variant): SFINAE on is_same first.
        * testsuite/20_util/variant/any.cc: test case.

Added:
    branches/gcc-7-branch/libstdc++-v3/testsuite/20_util/variant/any.cc
Modified:
    branches/gcc-7-branch/libstdc++-v3/ChangeLog
    branches/gcc-7-branch/libstdc++-v3/include/std/variant

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]