[Bug c++/79501] member deduction guide not recognized
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 16 20:32:21 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79501
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Expanded test for the second problem:
// PR c++/79501
// { dg-do compile { target c++17 } }
struct X {
template<typename T>
struct B { T t; };
// In C++20, should work even without this guide (P1816).
template<typename T> B(T) -> B<T>;
void foo () {
B{1};
}
};
void
fn ()
{
X x;
x.foo ();
}
More information about the Gcc-bugs
mailing list