[Bug c++/91759] [8/9/10 Regression] g++ accepts ill-formed deduction guides in wrong scope since r7-6608-ga56c0ac08242269b
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 29 12:21:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91759
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2020-01-29
CC| |jason at gcc dot gnu.org,
| |marxin at gcc dot gnu.org
Known to work| |6.4.0
Summary|g++ accepts ill-formed |[8/9/10 Regression] g++
|deduction guides in wrong |accepts ill-formed
|scope |deduction guides in wrong
| |scope since
| |r7-6608-ga56c0ac08242269b
Ever confirmed|0 |1
Known to fail| |10.0, 7.4.0, 8.3.0, 9.2.0
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r7-6608-ga56c0ac08242269b. We rejected the code before
the revision:
pr91759.cc:8:1: error: deduction guide ‘N::X(int)-> N::X<int>’ must be declared
in the same scope as ‘N::X<T>’
X(int) -> X<int>;
^
pr91759.cc:3:12: note: declared here
struct X{ X(int); };
^
More information about the Gcc-bugs
mailing list