https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88979
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88979
--- Comment #5 from Marek Polacek ---
Author: mpolacek
Date: Wed Mar 13 18:38:45 2019
New Revision: 269656
URL: https://gcc.gnu.org/viewcvs?rev=269656=gcc=rev
Log:
PR c++/88979 - further P0634 fix for constructors.
* parser.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88979
--- Comment #4 from Marek Polacek ---
And by the same token, I suspect this ought to work too:
template
struct A {
A(T::type);
};
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88979
--- Comment #3 from Marek Polacek ---
Oh, so basically this should compile in C++2a:
template
struct A {
using type = T::type;
A(type);
};
template
A::A(T::type a) {}
but it doesn't. It does when I add 'typename' to the out-of-line ctor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88979
--- Comment #2 from 19Sebastian95 at gmx dot de ---
I'm sorry if I'm misinterpreting this, but the program I wrote does compile
with gcc 9.0, as the "error" part is commented out, so I'll just write what to
do to get the descriped error:
If my
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88979
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed|