[Bug c++/106221] lamba inside a decltype in a using statement does not always work

2024-04-13 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106221

Patrick Palka  changed:

   What|Removed |Added

 Resolution|DUPLICATE   |---
 Status|RESOLVED|NEW

--- Comment #6 from Patrick Palka  ---
oops no it's not, this still doesn't work

[Bug c++/106221] lamba inside a decltype in a using statement does not always work

2024-04-13 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106221

Patrick Palka  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE
 CC||ppalka at gcc dot gnu.org

--- Comment #5 from Patrick Palka  ---
dup of the recently fixed PR92707

*** This bug has been marked as a duplicate of bug 92707 ***

[Bug c++/106221] lamba inside a decltype in a using statement does not always work

2022-07-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106221

--- Comment #4 from Andrew Pinski  ---
Even more reduced (you don't need the namespace after all):
using T = decltype([](){});

template
using foo = T;

using bar = foo;

[Bug c++/106221] lamba inside a decltype in a using statement does not always work

2022-07-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106221

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|10.5|---
Summary|[10/11/12/13 Regression]|lamba inside a decltype in
   |cannot compile variadic |a using statement does not
   |arguments with a concept as |always work
   |the variadic type in a  |
   |namespace   |

--- Comment #3 from Andrew Pinski  ---
Even more reduced:
namespace
{
using T = decltype([](){});
}

template
using foo = T;

using bar = foo;