[Bug c++/69139] [4.9/5/6 Regression] deduction failure with trailing return type in function template argument
ppalka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 8 23:06:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69139
--- Comment #7 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Mon Feb 8 23:06:21 2016
New Revision: 233231
URL: https://gcc.gnu.org/viewcvs?rev=233231&root=gcc&view=rev
Log:
Fix PR c++/69139 (deduction failure with trailing return type)
gcc/cp/ChangeLog:
PR c++/69139
* parser.c (cp_parser_simple_type_specifier): Make the check
for disambiguating between an 'auto' placeholder and an implicit
template parameter more robust.
gcc/testsuite/ChangeLog:
PR c++/69139
* g++.dg/cpp0x/trailing12.C: New test.
* g++.dg/cpp0x/trailing13.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/trailing12.C
trunk/gcc/testsuite/g++.dg/cpp0x/trailing13.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list