Fix PR c++/69139 (deduction failure with trailing return type)
authorPatrick Palka <ppalka@gcc.gnu.org>
Mon, 8 Feb 2016 23:06:21 +0000 (23:06 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Mon, 8 Feb 2016 23:06:21 +0000 (23:06 +0000)
commitefb45a9f4ae816d61fd06fedeb86a50d7434d157
tree98b18911a7e3fb68c913c06d673f62253a06e20e
parent20a0c6f9bdbd781ed5d413a10a06764a174dc394
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.

From-SVN: r233231
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/trailing12.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/trailing13.C [new file with mode: 0644]