[Bug c++/86728] [7/8/9 Regression] unexpected error: conversion from '<lambda(<type error>, ...)>' to non-scalar type 'std::function<void(int)>' requested

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Aug 11 11:02:00 GMT 2018


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

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Sat Aug 11 11:02:22 2018
New Revision: 263486

URL: https://gcc.gnu.org/viewcvs?rev=263486&root=gcc&view=rev
Log:
        PR c++/86728 - C variadic generic lambda.

        * parser.c (cp_parser_parameter_declaration): Don't turn 'auto' into
        a pack if it's followed by a declarator-id.

Added:
   
branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic19.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/parser.c


More information about the Gcc-bugs mailing list